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

Re: Summary of core GIT while you are away.

From
Linus Torvalds <torvalds@osdl.org>
Date
May 16, 2005, 16:10 UTC
Message-ID
<Pine.LNX.4.58.0505160837080.28162@ppc970.osdl.org>
In-Reply-To
<7vzmuy13od.fsf@assigned-by-dhcp.cox.net>
On Sat, 14 May 2005, Junio C Hamano wrote:
Show 5 quoted lines
>
> Hoping that you had a good time during your vacation, and at the
> same time also hoping to help you catch up with GIT traffic,
> here is my version of the summary of things that happened in the
> GIT community around core GIT [*1*].
Thanks. I'm back and reading email, but have by no means caught up yet.

Anyway, everythign I've read so far makes sense, and it might make sense to continue git development using just git-pb. The only thing I personally think sucks is the author/committer matching of git-rev-list/tree, since it would seem like somebody might well like to match on an arbitrary part of a commit, and special-casing author/committer seems somewhat broken. But that's a fairly minor nit.

I personally suspect that both git-rev-list and git-rev-tree should have an alternate output format that could be more easily grepped by subsequent commands. For example, right now git-rev-list just outputs a list of commit ID's, and it might make sense to have a flag to just append the commit message to the output, and zero-terminate it (and if the commit message has a NUL byte in it, just truncate it at that point).

Then you could just do
	git-rev-list -v --header HEAD | grep -z 'author[^\n]*Linus'

to tell it to do the "verbose" thing (only showing the header of the commit, not the whole message), and grep for "Linus" in the author line.

Or, if you want to see all commits that are signed off by so-and-so, do:
	git-rev-list -v HEAD | grep -zi 'signed-off-by:[^\n]*so-and-so'

and it would still be pretty efficient, and a _lot_ more generic and flexible than the "--author" and "--committer" flags.

I also suspect that a lot of uses if git-rev-{tree|list} actually want to see the commit stuff anyway, ie things like gitweb etc currently likely end up doing a separate "git-cat-file commit <sha1>" to get the whole commit information, which the "-v" flag would just give directly.

The only question is whether you want to have it be human-readable by default (indent the message lines with a <tab>, and nonheaders with <tab>+4*<space> or something), and then have a "-z" flag to do the machine-readable version described above.

Hmm?
		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 28 in “Summary of core GIT while you are away.”
  1. Junio C HamanoMay 14, 2005
  2. Linus TorvaldsMay 16, 2005
  3. rev-list/tree committer/author information.Junio C Hamano, May 16, 2005
  4. Petr BaudisMay 16, 2005
  5. Daniel BarkalowMay 16, 2005
  6. Junio C HamanoMay 16, 2005
  7. Petr BaudisMay 16, 2005
  8. Kay SieversMay 26, 2005
  9. Junio C HamanoMay 26, 2005
  10. Linus TorvaldsMay 26, 2005
  11. Linus TorvaldsMay 26, 2005
  12. Kay SieversMay 26, 2005
  13. Junio C HamanoMay 26, 2005
  14. Kay SieversMay 26, 2005
  15. Junio C HamanoMay 26, 2005
  16. H. Peter AnvinMay 27, 2005
  17. Junio C HamanoMay 27, 2005
  18. H. Peter AnvinMay 27, 2005
  19. Junio C HamanoMay 27, 2005
  20. H. Peter AnvinMay 27, 2005
  21. Junio C HamanoMay 27, 2005
  22. Linus TorvaldsMay 27, 2005
  23. H. Peter AnvinMay 26, 2005
  24. Junio C HamanoMay 26, 2005
  25. Kay SieversMay 26, 2005
  26. Junio C HamanoMay 27, 2005
  27. Kay SieversMay 27, 2005
  28. Junio C HamanoMay 27, 2005

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.