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

Re: git-feed-mail-list.sh

From
Linus Torvalds <torvalds@osdl.org>
Date
May 9, 2006, 01:27 UTC
Message-ID
<Pine.LNX.4.64.0605081822140.3718@g5.osdl.org>
In-Reply-To
<1147136467.2694.53.camel@shinybook.infradead.org>
On Tue, 9 May 2006, David Woodhouse wrote:
> 
> Ah, right. Those are _commit_ IDs in that strange first line. I'll
> reformat those to 'Commit:' and 'Parent:' for the mailing list.

Right. That first line (that starts with "commit") lists the commit ID, and if you say "--parents", the commit ID's of the parents will be appended.

So if you want to turn that into "Commit: <id>" and "Parent: <id>", you'll want to do something like this:

  git show --no-abbrev -C --patch-with-stat --pretty=fuller --parents $commit |
	sed '1 s/commit \([0-9a-f]*\)/Commit:     \1\nParent:    /'

which should look pretty (count the spaces to make sure it lines up right with the other fields).

(And if you ever want to report on merges, you'll want to change that a bit, but it should be reasonably close to the above)

		Linus
Previous: Martin MaresNext: Bertrand Jacquin
Message 16 of 24 in “git-feed-mail-list.sh”
  1. David WoodhouseMay 3, 2006
  2. Junio C HamanoMay 4, 2006
  3. Junio C HamanoMay 4, 2006
  4. David WoodhouseMay 8, 2006
  5. Linus TorvaldsMay 9, 2006
  6. David WoodhouseMay 9, 2006
  7. Junio C HamanoMay 9, 2006
  8. Bertrand JacquinMay 9, 2006
  9. Junio C HamanoMay 9, 2006
  10. Bertrand JacquinMay 9, 2006
  11. Linus TorvaldsMay 9, 2006
  12. David WoodhouseMay 9, 2006
  13. Junio C HamanoMay 9, 2006
  14. David WoodhouseMay 9, 2006
  15. Martin MaresMay 10, 2006
  16. Linus TorvaldsMay 9, 2006
  17. Bertrand JacquinMay 9, 2006
  18. Junio C HamanoMay 9, 2006
  19. Bertrand JacquinMay 9, 2006
  20. Junio C HamanoMay 9, 2006
  21. Linus TorvaldsMay 9, 2006
  22. Junio C HamanoMay 9, 2006
  23. Linus TorvaldsMay 9, 2006
  24. Junio C HamanoMay 9, 2006

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.