Skip to contentSkip to conversation

Seeing added and removed files between two tree states

DISCUSSION Alex Bennee 3 participants 3 messages Aug 11, 2016

lore
Share & tools
lore
#1 lore raw
In reply to Alex Bennee
Quoted 2 lines · Alex Bennee

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

?

#0 lore raw

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.

Signature · 3 lines
Alex, homepage: http://www.bennee.com/~alex/
... at least I thought I was dancing, 'til somebody stepped on my hand.
-- J. B. White
#2 lore raw
Quoted 5 lines · Alex Bennee

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.