Web lists-archives.com

Re: [PATCH] sha1-name.c: for ":/", find detached HEAD commits

> > Does for_each_ref() iterate over per-worktree refs (like "bisect",
> > perhaps)?
> No.

To be clear: it iterates only over the per-worktree refs for the current
worktree. So, if you mark an unreachable commit as "bad" with bisect,
then that commit is reachable (and found by ":/") in the enclosing
worktree only.

With this patch, ":/" now behaves the same way with HEADs, which makes
sense to me. Agreed with the above discussion.

I can add a test for this.