Skip to contentSkip to conversation

Dump differing files

DISCUSSION Maaartin 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Maaartin

author
#0 lore raw

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.

#1 lore raw

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

Quoted 9 lines · Maaartin

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html