Re: [PATCH] revision walker: Fix --boundary when limited

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Monday, March 5, 2007 - 6:12 pm

Hi,

On Mon, 5 Mar 2007, Junio C Hamano wrote:


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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] revision walker: Fix --boundary when limited, Johannes Schindelin, (Mon Mar 5, 11:55 am)
Re: [PATCH] revision walker: Fix --boundary when limited, Johannes Schindelin, (Mon Mar 5, 12:00 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Linus Torvalds, (Mon Mar 5, 12:39 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Linus Torvalds, (Mon Mar 5, 12:57 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Junio C Hamano, (Mon Mar 5, 2:10 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Johannes Schindelin, (Mon Mar 5, 4:17 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Junio C Hamano, (Mon Mar 5, 5:36 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Johannes Schindelin, (Mon Mar 5, 6:12 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Junio C Hamano, (Mon Mar 5, 6:32 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Johannes Schindelin, (Mon Mar 5, 6:44 pm)
Re: [PATCH] revision walker: Fix --boundary when limited, Junio C Hamano, (Mon Mar 5, 6:58 pm)