aboutsummaryrefslogtreecommitdiff
path: root/reflog-walk.h
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-11 11:47:48 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-20 21:32:31 -0800
commit8860fd42fcf5a7853f7d7c2198793183320293ff (patch)
tree24b6d67b95ef9efe285a4cb1f71d77edc5ef1834 /reflog-walk.h
parentbcf316187699c5e97bf47c1b8a00c844bf809fbc (diff)
downloadgit-8860fd42fcf5a7853f7d7c2198793183320293ff.tar.gz
git-8860fd42fcf5a7853f7d7c2198793183320293ff.tar.xz
Teach the revision walker to walk by reflogs with --walk-reflogs
When called with "--walk-reflogs", as long as there are reflogs available, the walker will take this information into account, rather than the parent information in the commit object. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'reflog-walk.h')
-rw-r--r--reflog-walk.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/reflog-walk.h b/reflog-walk.h
new file mode 100644
index 000000000..787996b37
--- /dev/null
+++ b/reflog-walk.h
@@ -0,0 +1,11 @@
+#ifndef REFLOG_WALK_H
+#define REFLOG_WALK_H
+
+extern void init_reflog_walk(struct reflog_walk_info** info);
+extern void add_reflog_for_walk(struct reflog_walk_info *info,
+ struct commit *commit, const char *name);
+extern void fake_reflog_parent(struct reflog_walk_info *info,
+ struct commit *commit);
+extern void show_reflog_message(struct reflog_walk_info* info);
+
+#endif