git rev-list with --name-status?
- From
- skillzero@gmail.com <skillzero@gmail.com>
- Date
- Dec 24, 2008, 22:53 UTC
- Message-ID
- <2729632a0812241453x4ae50362g4bcd3317e5be0429@mail.gmail.com>
Is there a way to print the equivalent of --name-status with git rev-list? The post-receive script that comes with git for sending comment emails does this to generate the commit log:
git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --pretty --stdin $oldrev..$newrev
I'd like to also include the output of --name-status so the email shows which files were changed by each commit (rather than just a summary at the end since our pushes sometimes have a lot of commits in them).
git rev-list doesn't seem to support --name-status and git log doesn't seem to support --stdin. Is there a better way to do what I want?