# Re: Seeing added and removed files between two tree states

3 messages from 2006-12-04 to 2006-12-04. Participants: Shawn Pearce, Alex Bennee, Junio C Hamano.
Thread: https://gitlist.dev/t/43581

## Alex Bennee, 2006-12-04 17:25

Subject: Seeing added and removed files between two tree states
Message-ID: <1165253146.32764.3.camel@okra.transitives.com>
URL: https://gitlist.dev/e/1165253146.32764.3.camel%40okra.transitives.com

```
In there a way to see just what files where added between two points in
the tree? I want something better than parsing the diffstat.

I thought git-ls-files -ad comittish..comitishb would do the trick but
it seems not.

-- 
Alex, homepage: http://www.bennee.com/~alex/
... at least I thought I was dancing, 'til somebody stepped on my hand.
-- J. B. White

```

## Shawn Pearce, 2006-12-04 17:33

Subject: Re: Seeing added and removed files between two tree states
Message-ID: <20061204173320.GD6011@spearce.org>
URL: https://gitlist.dev/e/20061204173320.GD6011%40spearce.org
In-Reply-To: <1165253146.32764.3.camel@okra.transitives.com>

```
Alex Bennee <kernel-hacker@bennee.com> wrote:
> In there a way to see just what files where added between two points in
> the tree? I want something better than parsing the diffstat.

[spearce@pb15 git]$ git diff-tree -r --abbrev --diff-filter=A next build
:000000 100644 0000000... 3d53d17... A  shallow.c
:000000 100644 0000000... 1fe7a1b... A  xdiff/xmerge.c

?

-- 

```

## Junio C Hamano, 2006-12-04 21:18

Subject: Re: Seeing added and removed files between two tree states
Message-ID: <7vwt57nyw0.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vwt57nyw0.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <1165253146.32764.3.camel@okra.transitives.com>

```
Alex Bennee <kernel-hacker@bennee.com> writes:

> In there a way to see just what files where added between two points in
> the tree? I want something better than parsing the diffstat.
>
> I thought git-ls-files -ad comittish..comitishb would do the trick but
> it seems not.

$ git diff-tree --name-status --diff-filter=A HEAD~64 HEAD

Variants of the above are possible.  If you want to see addition
and deletion, use --diff-filter=AD.


```
