# Dump differing files

2 messages from 2010-11-12 to 2010-11-12. Participants: Maaartin, Kevin Ballard.
Thread: https://gitlist.dev/t/25728

## Maaartin, 2010-11-12 17:44

Subject: Dump differing files
Message-ID: <loom.20101112T183755-430@post.gmane.org>
URL: https://gitlist.dev/e/loom.20101112T183755-430%40post.gmane.org

```
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, 2010-11-12 22:39

Subject: Re: Dump differing files
Message-ID: <151B15B7-F43E-40E6-B025-028B07C00C2C@sb.org>
URL: https://gitlist.dev/e/151B15B7-F43E-40E6-B025-028B07C00C2C%40sb.org
In-Reply-To: <loom.20101112T183755-430@post.gmane.org>

```
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:

> 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

```
