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

Re: [PATCH] fmt-merge-msg: avoid open "-|" list form for Perl 5.6

From
Linus Torvalds <torvalds@osdl.org>
Date
Mar 3, 2006, 00:49 UTC
Message-ID
<Pine.LNX.4.64.0603021643560.22647@g5.osdl.org>
In-Reply-To
<7v1wxk5ptf.fsf@assigned-by-dhcp.cox.net>
On Thu, 2 Mar 2006, Junio C Hamano wrote:
Show 9 quoted lines
> 
> And you had lt/rev-list branch first listed in FETCH_HEAD.  In
> this particular example, lt/rev-list has only 3 commits on top
> of common things, but if your max were 3 instead of 10, the
> first round would actually show the tip 3 without showing any
> common stuff, and then the next round to show fk/blame branch
> would show only the remaining two, without ever showing the
> common stuff, even though it _could_ say the latest of the
> common stuff.

Yes. I considered it briefly, and it's fixable, but to fix it you'd have to actualyl walk the parent list yourself, rather than letting get_revision do it all for you.

And what my simple thing shows isn't really technically "wrong", since it has shown that there are commits missing from the output with the "..."

The question is just whether shared commits should be "balanced out", or shown as part of the first branch that merged them. I chose the latter, because it's not only simple, it's unambiguous (any balancing algorithm will depend on some random heuristic or other, and on how many commits are shown.

Show 7 quoted lines
> >  - the old one did some formatting of the branch message that I don't 
> >    follow because I'm not a perl user. The new one just takes the 
> >    explanatory message for the branch merging as-is.
> 
> FETCH_HEAD has explanatory message in more or less "canonical"
> form.  It has noise word "branch", and the current repository is
> typically " of .".

Yeah, I actually looked at a few examples, so I knew what it was basically trying to do, and then I ignored it as not interesting to the exercise, which was to abuse the new revision listing library in interesting ways by calling it multiple times.

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 10 in “Re: [PATCH] fmt-merge-msg: avoid open "-|" list form for Perl 5.6”
  1. Christopher FaylorMar 2, 2006
  2. Shawn PearceMar 2, 2006
  3. Alex RiesenMar 2, 2006
  4. Linus TorvaldsMar 2, 2006
  5. Junio C HamanoMar 3, 2006
  6. Linus TorvaldsMar 3, 2006
  7. Junio C HamanoMar 3, 2006
  8. Linus TorvaldsMar 3, 2006
  9. Christopher FaylorMar 3, 2006
  10. Johannes SchindelinMar 2, 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.