Hi, On Thu, 15 Jan 2009, Junio C Hamano wrote: > Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > > > On Thu, 15 Jan 2009, Johannes Schindelin wrote: > > > >> [PATCH] pack-objects --all: include HEAD, which could be detached > > > > In hind sight, it would probably be better to add this to revision.c. > > If you mean that "git log --all" should also include a possibly detached > HEAD in its traversal, and a patch that implements such a fix would > automatically fix "repack -a" without the patch you are responding to, I > think I agree 100%. Yes, indeed. Something like -- snip -- diff --git a/revision.c b/revision.c index db60f06..b065184 100644 --- a/revision.c +++ b/revision.c @@ -1263,6 +1263,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch if (!strcmp(arg, "--all")) { handle_refs(revs, flags, for_each_ref); + handle_refs(revs, flags, head_ref); continue; } if (!strcmp(arg, "--branches")) { -- snap -- but that was just a quick guess, and if nobody beats me to it, I'll turn it into a proper patch later. Ciao, Dscho -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html