summaryrefslogtreecommitdiff
path: root/reflog-walk.h
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-11 10:47:48 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-21 05:32:31 (GMT)
commit8860fd42fcf5a7853f7d7c2198793183320293ff (patch)
tree24b6d67b95ef9efe285a4cb1f71d77edc5ef1834 /reflog-walk.h
parentbcf316187699c5e97bf47c1b8a00c844bf809fbc (diff)
downloadgit-8860fd42fcf5a7853f7d7c2198793183320293ff.zip
git-8860fd42fcf5a7853f7d7c2198793183320293ff.tar.gz
git-8860fd42fcf5a7853f7d7c2198793183320293ff.tar.bz2
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 0000000..787996b
--- /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