]> git.ipfire.org Git - thirdparty/git.git/commit - object.h
Teach revision walking machinery to walk multiple times sequencially
authorHeiko Voigt <hvoigt@hvoigt.net>
Thu, 29 Mar 2012 07:21:21 +0000 (09:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Mar 2012 15:57:49 +0000 (08:57 -0700)
commitbcc0a3ea38a42a64878e11c5244ef2fcc967e05d
tree5ca0d025050a6b81fce75af772de37715a7c7ed2
parent6f5e880c68099b185e60b2492c75e506e16d8292
Teach revision walking machinery to walk multiple times sequencially

Previously it was not possible to iterate revisions twice using the
revision walking api. We add a reset_revision_walk() which clears the
used flags. This allows us to do multiple sequencial revision walks.

We add the appropriate calls to the existing submodule machinery doing
revision walks. This is done to avoid surprises if future code wants to
call these functions more than once during the processes lifetime.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Documentation/technical/api-revision-walking.txt
Makefile
object.c
object.h
revision.c
revision.h
submodule.c
t/t0062-revision-walking.sh [new file with mode: 0755]
test-revision-walking.c [new file with mode: 0644]