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

Re: [PATCH 07/10] rev-list: call new "filter_skip" function

From
Christian Couder <chriscool@tuxfamily.org>
Date
Apr 2, 2009, 04:23 UTC
Message-ID
<200904020623.40908.chriscool@tuxfamily.org>
In-Reply-To
<alpine.DEB.1.00.0904011631300.13502@intel-tinevez-2-302>
Hi,
Le mercredi 1 avril 2009, Johannes Schindelin a écrit :
Show 26 quoted lines
> Hi,
>
> On Wed, 1 Apr 2009, Christian Couder wrote:
> > Le mardi 31 mars 2009, Johannes Schindelin a écrit :
> > > Hi,
> > >
> > > On Tue, 31 Mar 2009, Christian Couder wrote:
> > > > Le lundi 30 mars 2009, Johannes Schindelin a écrit :
> > > No, you want to _look up_ sha1s.  And struct decorate is not about
> > > storing objects, but to attach things to objects.
> >
> > The problem is that I don't have any object to attach things to when I
> > read the bisect skip refs. I just need to store the sha1 from the skip
> > refs in some sha1 container.
>
> I see, so you do not want to parse the commits just to register them as
> skipped.
>
> Fair enough.
>
> But I still think that a hashmap/set would be better suited.
>
> In any case, it should be refactored into something usable in all of
> libgit.a.  You are basically duplicating the grafts code in commit.c,
> sharing that shortcoming that your code would be static again, not
> encouraging reusage.

I agree that binary search functions and related code should be refactored. That's why I added the "Refactor binary search functions" task to the Janitor wiki page (http://git.or.cz/gitwiki/Janitor) a few weeks ago.

I will have a look at that, and perhaps, after that, I will try to make things less static, but I think these are some old problems in the code base, so new developments should not be hostage of them.

Best reagrds, Christian.

Previous: Johannes Schindelin
Message 9 of 9 in “rev-list: call new "filter_skip" function”
  1. 07/10 rev-list: call new "filter_skip" functionChristian Couder, Mar 26, 2009
  2. Junio C HamanoMar 26, 2009
  3. Christian CouderMar 30, 2009
  4. Johannes SchindelinMar 30, 2009
  5. Christian CouderMar 31, 2009
  6. Johannes SchindelinMar 31, 2009
  7. Christian CouderApr 1, 2009
  8. Johannes SchindelinApr 1, 2009
  9. Christian CouderApr 2, 2009

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.