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

Re: [PATCH 1/5] Add some functions for commit lists

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Apr 24, 2005, 02:40 UTC
Message-ID
<Pine.LNX.4.21.0504232230080.30848-100000@iabervon.org>
In-Reply-To
<Pine.LNX.4.58.0504231916300.2344@ppc970.osdl.org>
On Sat, 23 Apr 2005, Linus Torvalds wrote:
Show 12 quoted lines
> 
> 
> On Sat, 23 Apr 2005, Linus Torvalds wrote:
> > 
> > Ok. This is more in like with what I was hoping for, looks good.
> 
> Oh, Daniel, I notice that you have the same old bug: it will happily add 
> the same parent to the list several times. You need to prune them out, and 
> ignore things you've seen.
>
> I pushed out the fix (don't parse and add parents to the list that were 
> already parsed).

This won't actually work for merge-base, which wants to run two of these, one for each head, in parallel, and find the first commit on both lists. I think making insert_by_date() ignore items already in the list is a better solution, although that might run into problems if there's a complicated graph of commits all with the same time.

Another option is to specify a object.flags bit to mark for each commit and ignore commits that are already marked.

	-Daniel
*This .sig left intentionally blank*
Previous: Linus TorvaldsNext: Daniel Barkalow
Message 5 of 12 in “Better merge-base, alternative transport programs”
  1. 0/5 Better merge-base, alternative transport programsDaniel Barkalow, Apr 24, 2005
  2. 1/5 Add some functions for commit listsDaniel Barkalow, Apr 24, 2005
  3. Linus TorvaldsApr 24, 2005
  4. Linus TorvaldsApr 24, 2005
  5. Daniel BarkalowApr 24, 2005
  6. Allow multiple date-ordered listsDaniel Barkalow, Apr 24, 2005
  7. Add -u option to diff-cache to show UNCHANGED filesAndreas Gal, Apr 24, 2005
  8. Petr BaudisApr 24, 2005
  9. 2/5 Parse tree objects completelyDaniel Barkalow, Apr 24, 2005
  10. 3/5 Additional functions for the objects databaseDaniel Barkalow, Apr 24, 2005
  11. 4/5 Replace merge-base implementationDaniel Barkalow, Apr 24, 2005
  12. 5/5 Various transport programsDaniel Barkalow, Apr 24, 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.