Code

--walk-reflogs: disallow uninteresting commits
[git.git] / reflog-walk.c
index d4b49c7354a4b4cade997a98cb9f097e3d2b2369..2d974116ded2c3b5de8a4ab6cdcd9f02b0ff95c7 100644 (file)
@@ -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;