I agree.
I have the slight suspicion that it might be faster if gc_boundary() was
not called at all... But that's probably a subject for later.
Yes, git-bundle should be easy enough to fix.
An easy optimisation would be iterate in the other direction, resetting
array->nr after the loop. Of course, this does not preserve the order...
Clever!
I guess that you want to do this instead:
case 0:
c = NULL;
/* fall through */
so that --reverse actually works (otherwise, the while() loop would
deplete max_count, and then max_count would be 0, and nothing would be
returned).
AFAICT this changes behaviour: c->parents were possibly rewritten. But I
guess it makes sense showing the rewritten parents as boundary commits,
not the real parents.
... or
if (p->flags & (CHILD_SHOWN | SHOWN))
?
Ciao,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html