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

Re: [PATCH 1/3] rev-list --bisect: Move finding bisection into do_find_bisection.

From
Christian Couder <chriscool@tuxfamily.org>
Date
Sep 17, 2007, 03:19 UTC
Message-ID
<200709170519.19504.chriscool@tuxfamily.org>
In-Reply-To
<7vk5qr575a.fsf@gitster.siamese.dyndns.org>
Le dimanche 16 septembre 2007, Junio C Hamano a écrit :
Show 19 quoted lines
> > +static struct commit_list *do_find_bisection(struct commit_list *list,
> > +					     int nr, int *weights);
> > +
> >  /*
> >   * zero or positive weight is the number of interesting commits it can
> >   * reach, including itself.  Especially, weight = 0 means it does not
>
> The comment whose top part we can see here talks about the magic
> values -1 and -2 used while do_find_bisection() after the
> refactoring does its work, and these magic values are never
> visible to the calling function.  You should move the comment to
> the top of do_find_bisection() as well.
>
> Also this forward declaration is unwarranted.  A bottom-up
> sequence to define do_find_bisection() first, then to define its
> sole caller find_bisection() next is easier to read at least for
> me.
>
> The latter comment also applies to your other patch.
All right, I will send new patchs with these changes.

Thanks, Christian.

Previous: Junio C Hamano
Message 3 of 3 in “rev-list --bisect: Move finding bisection into do_find_bisection.”
  1. 1/3 rev-list --bisect: Move finding bisection into do_find_bisection.Christian Couder, Sep 15, 2007
  2. Junio C HamanoSep 16, 2007
  3. Christian CouderSep 17, 2007

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.