Re: Question about the revision walking API

2015-01-06 Thread Junio C Hamano
Christian Couder writes: > I am not sure what you describe above would work, but something like > what is done in bisect.c should work, see check_ancestors() and > bisect_next_all(). It might not be the most efficient solution though, > so I am interested if you find something more efficient. I

Re: Question about the revision walking API

2015-01-06 Thread Christian Couder
Hi, On Tue, Jan 6, 2015 at 3:02 AM, Mike Hommey wrote: > Hi, > > I would like to know if the revision walking API works as one would > expect with a calling sequence like the following: > > - init_revisions > - add_pending_object/setup_revisions > - prepare_revision_walk > - get_revision (repeat

Re: Question about the revision walking API

2015-01-06 Thread Mike Hommey
On Tue, Jan 06, 2015 at 02:24:58AM -0800, Junio C Hamano wrote: > Mike Hommey writes: > > > I would like to know if the revision walking API works as one would > > expect with a calling sequence like the following: > > > > - init_revisions > > - add_pending_object/setup_revisions > > - prepare_re

Re: Question about the revision walking API

2015-01-06 Thread Junio C Hamano
Mike Hommey writes: > I would like to know if the revision walking API works as one would > expect with a calling sequence like the following: > > - init_revisions > - add_pending_object/setup_revisions > - prepare_revision_walk > - get_revision (repeated) > - reset_revision_walk (I guess) Aroun

Question about the revision walking API

2015-01-05 Thread Mike Hommey
Hi, I would like to know if the revision walking API works as one would expect with a calling sequence like the following: - init_revisions - add_pending_object/setup_revisions - prepare_revision_walk - get_revision (repeated) - reset_revision_walk (I guess) - add_pending_object - prepare_revisio