devchat icon indicating copy to clipboard operation
devchat copied to clipboard

Files disappear from staged list after further modifications in commit workflow

Open yangbobo2021 opened this issue 2 years ago • 0 comments

Hello Team,

I have encountered a recurring issue during the commit workflow where files are not correctly identified as either staged or unstaged after subsequent modifications. Here's the problem sequence:

  1. I modify a file named 'A'.
  2. I stage the file 'A' using git add A or a GUI equivalent.
  3. The file 'A' now appears correctly in the staged changes list.
  4. I make further changes to the file 'A' without restaging it.
  5. Upon checking the list of staged files to commit, file 'A' no longer appears in the staged changes list, which seems incorrect.

I would expect the file 'A' to remain in the staged list, showing that it has staged changes, with indications that more unstaged changes are also present. This issue causes confusion and could potentially lead to incomplete commits.

Can we look into why the system is not correctly handling the staged files after they're modified again?

Thank you for your attention to this matter.

Best regards, [your name]

yangbobo2021 avatar Jan 11 '24 00:01 yangbobo2021