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
in fact git-mv (like git-add and git-rm) opperates just on working
directory and staging area (index) levels. It doesn't touch git
repository itself. So it
--
You received this message because you are subscribed to the Google Groups Git
for human beings group.
To post to this group, send email
so git-mv implies to be used with git-commit if you want to save
changes in git repository and not just in its staging area.
--
You received this message because you are subscribed to the Google Groups Git
for human beings group.
To post to this group, send email to git-us...@googlegroups.com.
I have 2 revisions of a file at HEAD and HEAD^. I want to manually
compose new version of the file out of these two ones. I try to get
the whole content of the file with diffs `git diff -U HEAD^..HEAD
-- myfile`. With `-U` I try to lift the limits of the context. But
I'd like to escape
May be you meant
$ git show HEAD:your_file /tmp/your-file-as-in-HEAD
$ git show HEAD^:your_file /tmp/your-file-as-in-HEADs-parent
?
No. But OK, I have realized that my problem concerns rather diff tools
than git itself. If I create those two files in /tmp/ with your
commands, then I'd like