threads / discuss / 25728

Dump differing files

Subject: Dump differing files

## tl;dr

2 messages between Nov 12, 2010 and Nov 12, 2010.

replies: 1people: 2as markdown or json

Maaartin· Nov 12, 2010, 17:44 UTC · lore

Some time ago, I saw a command allowing to dump all files which differ in the given two commits (or something like that). It may have been an option to git diff or whatever, but I can't find it anymore. I'm quite sure, somebody knows... thanks.

Kevin Ballard· Nov 12, 2010, 22:39 UTC · re: Maaartin · lore

Re: Dump differing files

A user-friendly version might be `git diff --stat $COMMIT1 $COMMIT2`. This will give you a diffstat showing what's different between the two commits.

If you really just want the changed files, you can use something like
     git diff-tree --name-only -r $COMMIT1 $COMMIT2
-Kevin Ballard
On Nov 12, 2010, at 9:44 AM, Maaartin wrote:
Show 9 quoted lines
> Some time ago, I saw a command allowing to dump all files which differ in the 
> given two commits (or something like that). It may have been an option to git 
> diff or whatever, but I can't find it anymore. I'm quite sure, somebody knows... 
> thanks.
> 
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

← back to recent threads