Is there a command for this? It seems like something really useful that should exist, but I haven't been able to find a command or switch for it despite my googling. Help?
Asked
Active
Viewed 3,833 times
4
-
Dup of http://stackoverflow.com/questions/6058101/in-git-how-do-i-get-a-detailed-list-of-file-changes-from-one-revision-to-anothe – titaniumdecoy Jan 05 '12 at 17:52
-
1No. I don't want to see stuff that's changed on master. I don't care about anything except what's been changed on my branch since inception. – Eli Jan 05 '12 at 18:47
-
Possible duplicate of [git - get all files that have been modified in branch](https://stackoverflow.com/questions/10641361/git-get-all-files-that-have-been-modified-in-branch) – Robin Green Oct 29 '17 at 06:46
2 Answers
4
Mike West set up an alias called fshow
to do exactly this: see his write-up for detailed instructions how to do it.

dhwthompson
- 2,501
- 1
- 15
- 11
-
git fshow is basically what I want! Thanks! I just made a slight tweek to it to only show files that exist in the latest revision and I'm all set! – Eli Jan 05 '12 at 19:08
3
The below is based on Mike West's fshow. In your .gitconfig:
[alias]
#show all files changed since branch inception
ishow = ! bash -c 'git show --pretty="format:" --name-only "$(git merge-base "$(git rev-parse --abbrev-ref HEAD)" master)..HEAD" | grep -v "^$" | sort | uniq' -

user2941229
- 31
- 1