git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git rev-list with --name-status?

From
Sskillzero@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?

Next: Junio C Hamano
Message 1 of 5 in “git rev-list with --name-status?”
  1. skillzero@gmail.comDec 24, 2008
  2. Junio C HamanoDec 25, 2008
  3. demerphqDec 25, 2008
  4. Junio C HamanoDec 25, 2008
  5. skillzero@gmail.comDec 25, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.