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

[PATCH 0/2] Random patches from my tree

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Oct 27, 2008, 20:05 UTC
Message-ID
<alpine.LFD.2.00.0810271256470.3386@nehalem.linux-foundation.org>

Ok, here's two random patches that I have in my git tree that may or may not be interesting.

The first one is something I did a long time ago because I was irritated by the "skipping inexact rename detection" message not really telling me _why_ it did so - just "too many files". So it just adds the information about number of deleted and created files.

The second one was something I whipped up due to the discussion about "which branch is a commit from". It adds a "--source" flag to the log command family, which then makes the revision walker save off the name of the commit in the '->util' field, and makes 'show_decorations()' show it.

So the second one allows things like
	git log --pretty=oneline --source --all

and it gives a somewhat useful view of which branch some commit came in on, by just showing _which_ of the references was the one that reached a particular commit first.

Of course, with commits that are reached multiple ways the whole notion of "which one reached us" is ambiguous, and it just picks one rather than building up any list of them. The first name we reach somethign through is the one that a commit sticks with. That's generally what you want.

I guess we should have a "--pretty=format" thing for it too, and maybe you want to support it for 'git rev-list' as well, but that's for others to decide - it people think it's useful.

			Linus
Next: Linus Torvalds
Message 1 of 14 in “Random patches from my tree”
  1. 0/2 Random patches from my treeLinus Torvalds, Oct 27, 2008
  2. 1/2 Add file delete/create info when we overflow rename_limitLinus Torvalds, Oct 27, 2008
  3. 2/2 Add a 'source' decorator for commitsLinus Torvalds, Oct 27, 2008
  4. Jeff KingOct 28, 2008
  5. Pierre HabouzitOct 28, 2008
  6. Pierre HabouzitOct 28, 2008
  7. Jeff KingOct 28, 2008
  8. Jeff KingOct 28, 2008
  9. Pierre HabouzitOct 28, 2008
  10. Jeff KingOct 28, 2008
  11. Linus TorvaldsOct 28, 2008
  12. Linus TorvaldsOct 28, 2008
  13. Jeff KingOct 28, 2008
  14. Linus TorvaldsOct 27, 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.