summaryrefslogtreecommitdiff
path: root/Documentation/technical/api-revision-walking.txt
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2012-03-29 07:21:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-30 15:57:49 (GMT)
commitbcc0a3ea38a42a64878e11c5244ef2fcc967e05d (patch)
tree5ca0d025050a6b81fce75af772de37715a7c7ed2 /Documentation/technical/api-revision-walking.txt
parent6f5e880c68099b185e60b2492c75e506e16d8292 (diff)
downloadgit-bcc0a3ea38a42a64878e11c5244ef2fcc967e05d.zip
git-bcc0a3ea38a42a64878e11c5244ef2fcc967e05d.tar.gz
git-bcc0a3ea38a42a64878e11c5244ef2fcc967e05d.tar.bz2
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>
Diffstat (limited to 'Documentation/technical/api-revision-walking.txt')
-rw-r--r--Documentation/technical/api-revision-walking.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/technical/api-revision-walking.txt b/Documentation/technical/api-revision-walking.txt
index 996da05..b7d0d9a 100644
--- a/Documentation/technical/api-revision-walking.txt
+++ b/Documentation/technical/api-revision-walking.txt
@@ -56,6 +56,11 @@ function.
returning a `struct commit *` each time you call it. The end of the
revision list is indicated by returning a NULL pointer.
+`reset_revision_walk`::
+
+ Reset the flags used by the revision walking api. You can use
+ this to do multiple sequencial revision walks.
+
Data structures
---------------