statistics
Hi.
Is there a (non-depressing) way of getting "which files did not change since <rev>" out of git?
Rene.
Quoted 4 lines · Rene Herman
Hi.
Is there a (non-depressing) way of getting "which files did not change since <rev>" out of git?
What is "non-depressing"?
Try this if you are using bash:
comm -13 <(git diff --name-only your-rev-here) <(git ls-files)
-- Hannes
Quoted 10 lines · Johannes Sixt
Quoted 2 lines · Rene Herman
Is there a (non-depressing) way of getting "which files did not change since <rev>" out of git?
What is "non-depressing"?
Try this if you are using bash:
comm -13 <(git diff --name-only your-rev-here) <(git ls-files)
That classifies as non-depressing, thank you. --name-only, process substitution _and_ comm -13 hadn't featured in my attempts yet.
Rene.
Quoted 11 lines · Johannes Sixt
Quoted 4 lines · Rene Herman
Hi.
Is there a (non-depressing) way of getting "which files did not change since <rev>" out of git?
What is "non-depressing"?
Try this if you are using bash:
comm -13 <(git diff --name-only your-rev-here) <(git ls-files)
Neat, I never knew about comm before. I probably would have come up with something like
cat <(git ls-tree -r $REV) <(git ls-tree -r HEAD) | sort | uniq -d
| cut -f 2 | sort
-Kevin Ballard
Signature · 4 lines
Kevin Ballard http://kevin.sb.org [email protected] http://www.tildesoft.com
Hi,
Quoted 1 line · Johannes Sixt
comm -13 <(git diff --name-only your-rev-here) <(git ls-files)
Thanks. I learnt two new things from that: comm (funnily, I did not know that tool), and <() (looks almost like a puffin, doesn't it?).
But should it not be -12?
Ciao,
Dscho
Quoted 5 lines · Johannes Schindelin
Quoted 1 line · Johannes Sixt
comm -13 <(git diff --name-only your-rev-here) <(git ls-files)But should it not be -12?
I don't think so:
-1 .. suppress lines unique to 1st arg, i.e. removed files -2 .. suppress lines unique to 2nd arg, i.e. unmodified files -3 .. suppress lines in both, i.e. modified and added files
We want to keep lines that -2 would remove, that leaves -1 and -3.
-- Hannes
Hi,
Quoted 7 lines · Johannes Sixt
Quoted 5 lines · Johannes Schindelin
Quoted 1 line · Johannes Sixt
comm -13 <(git diff --name-only your-rev-here) <(git ls-files)But should it not be -12?
Quoted 7 lines
I don't think so:
-1 .. suppress lines unique to 1st arg, i.e. removed files -2 .. suppress lines unique to 2nd arg, i.e. unmodified files -3 .. suppress lines in both, i.e. modified and added files
We want to keep lines that -2 would remove, that leaves -1 and -3.
Oh, but of course!
Thanks again,
Dscho