summaryrefslogtreecommitdiff
path: root/reflog-walk.h
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-07-23 23:39:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-25 00:28:10 (GMT)
commit7b69b873faf3cfd592bb64a496c6982a540aa7ea (patch)
tree6142de722c399ccfbc5a61e880e129d3d01cdd05 /reflog-walk.h
parent2d8ae400d134c326f3ab0ec15ae522fb74cd0b1d (diff)
downloadgit-7b69b873faf3cfd592bb64a496c6982a540aa7ea.zip
git-7b69b873faf3cfd592bb64a496c6982a540aa7ea.tar.gz
git-7b69b873faf3cfd592bb64a496c6982a540aa7ea.tar.bz2
git log -g: Complain, but do not fail, when no reflogs are there
When asking "git log -g --all", clearly you want to see only those refs that do have reflogs, but you do not want it to fail, either. So instead of die()ing, complain about it, but move on to the other refs. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reflog-walk.h')
-rw-r--r--reflog-walk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reflog-walk.h b/reflog-walk.h
index a4f7015..7ca1438 100644
--- a/reflog-walk.h
+++ b/reflog-walk.h
@@ -2,7 +2,7 @@
#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,
+extern int 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);