path: root/Documentation/technical/api-revision-walking.txt
diff options
authorHeiko Voigt <>2012-03-29 07:21:21 (GMT)
committerJunio C Hamano <>2012-03-30 15:57:49 (GMT)
commitbcc0a3ea38a42a64878e11c5244ef2fcc967e05d (patch)
tree5ca0d025050a6b81fce75af772de37715a7c7ed2 /Documentation/technical/api-revision-walking.txt
parent6f5e880c68099b185e60b2492c75e506e16d8292 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/technical/api-revision-walking.txt')
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 the flags used by the revision walking api. You can use
+ this to do multiple sequencial revision walks.
Data structures