At some commit X in the past I renamed, deleted and added some files,
for instance, R1, R2, D1, A1, A2 and A3. How can I remember what files
only were:
1) deleted (D1)
2) added (A1, A2, A3) and
3) renamed (R1, R2).
In fact I had a global renaming across more than 100 files and a few
files were
When I type git diff --name-status --diff-filter=***AD*** X^ X Git
gives me all the files that were deleted or added at commit X, renamed
files are included. But git diff --name-status --diff-filter=***R***
X^ X gives no output, though allmost all files were not just deleted
or add, but renamed.
I could find the answer thanks to guys from IRC chat #git:
1) git diff --name-status -M -C [-C] --diff-filter=D X^!
2) git diff --name-status -M -C [-C] --diff-filter=A X^!
3) git diff --name-status -M -C [-C] --diff-filter=R X^!
These three commands shows what files were
1) deleted (not just