Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
--walk-reflogs: disallow uninteresting commits
[gitweb.git]
/
reflog-walk.c
diff --git
a/reflog-walk.c
b/reflog-walk.c
index d4b49c7354a4b4cade997a98cb9f097e3d2b2369..2d974116ded2c3b5de8a4ab6cdcd9f02b0ff95c7 100644
(file)
--- a/
reflog-walk.c
+++ b/
reflog-walk.c
@@
-145,6
+145,9
@@
void add_reflog_for_walk(struct reflog_walk_info *info,
char *branch, *at = strchr(name, '@');
struct commit_reflog *commit_reflog;
+ if (commit->object.flags & UNINTERESTING)
+ die ("Cannot walk reflogs for %s", name);
+
branch = xstrdup(name);
if (at && at[1] == '{') {
char *ep;