threads / discuss / 43581

Re: Seeing added and removed files between two tree states

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

## tl;dr

3 messages between Dec 4, 2006 and Dec 4, 2006.

replies: 2people: 3as markdown or json

Alex Bennee· Dec 4, 2006, 17:25 UTC · lore

Seeing added and removed files between two tree states

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· Dec 4, 2006, 17:33 UTC · re: Alex Bennee · lore
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· Dec 4, 2006, 21:18 UTC · re: Alex Bennee · lore
Alex Bennee <kernel-hacker@bennee.com> writes:
Show 5 quoted lines
> 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.

← back to recent threads