An assistant updates a receipt export and adds a test fixture. During the task one source edit gets staged, a second edit stays unstaged, and the new fixture is untracked. Before committing, check all three states with separate commands.
git status --short
git diff
git diff --staged
The plain diff shows changes to tracked files relative to what is staged. The staged diff shows what a commit would include, normally relative to HEAD. Open files marked ?? in the status output directly, because they may be absent from both patch views. Check whether a fixture that looks synthetic contains any data copied from an actual receipt.
Try it with a disposable change
In a throwaway checkout, edit one tracked file and stage it. Then append a different line to the same file and create an untracked fixture. You should see the first edit in the staged diff, the second in the plain diff, and the fixture in status. For the real change, review the resulting test behavior and recheck the staged diff after adding anything else.
Check the exact patch the commit will carry
When one file has both staged and unstaged edits, inspect it with git diff --staged -- path/to/file and git diff -- path/to/file. Compare the two patches for dependencies. If you staged a new export field but left the code that supplies its value unstaged, your working-tree test can pass while the staged version is incomplete.
Stage the related hunk if it belongs in the same commit, then run git diff --staged --stat and inspect the full staged diff again. Check that the test fixture appears in the staged file list if the test loads it. Run the relevant test against the staged content in an isolated checkout when unstaged edits could change the result.
