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

Re: [PATCH] Bisect visualize: use "for-each-ref" to list all good refs.

From
Christian Couder <chriscool@tuxfamily.org>
Date
Nov 15, 2007, 06:43 UTC
Message-ID
<200711150743.59716.chriscool@tuxfamily.org>
In-Reply-To
<7voddxkzzw.fsf@gitster.siamese.dyndns.org>
Le mercredi 14 novembre 2007, Junio C Hamano a écrit :
Show 10 quoted lines
> Christian Couder <chriscool@tuxfamily.org> writes:
> > In bisect_visualize, "cd $GIT_DIR/refs && echo bisect/good-*" was
> > still used instead of "git for-each-ref". This patch fix it.
>
> Heh, it still uses
>
> 	echo "$rev" >"$GIT_DIR/refs/bisect/$tag"
>
> So we are still _very_ much tied to refs on the filesystem not
> in packed-refs.

Yes, but someone (guess who) started to modernize git-bisect by using "for-each-ref":

http://git.kernel.org/?p=git/git.git;a=commitdiff;h=6fecf1915c5fd0b14e2ca2ec9e1a6b620abfb5c2 http://git.kernel.org/?p=git/git.git;a=commitdiff;h=0a5280a9f444c33b0e4ebf2f073df5899c112cf8

so I thought it would be fine to finish this modernization work.
Show 7 quoted lines
> Even worse is that bisect_clean_state uses
>
> 	rm -fr "$GIT_DIR/refs/bisect"
>
> so if you ever pack your refs in the middle of bisection and
> then clean the state, you will still carry the old good set of
> commits that are somewhat hard to cull.

Thanks for reminding me of this problem. I just posted a patch that should fix it.

Best regards, Christian.

Previous: Johannes Sixt
Message 4 of 4 in “Bisect visualize: use "for-each-ref" to list all good refs.”
  1. Bisect visualize: use "for-each-ref" to list all good refs.Christian Couder, Nov 14, 2007
  2. Junio C HamanoNov 14, 2007
  3. Johannes SixtNov 14, 2007
  4. Christian CouderNov 15, 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.