log: clarify comment about reflog cycles
[gitweb.git] / revision.c
index e181ad1b70d06a0f64869a925c98cbc8558ef684..6678de04d93d5e21c85c972a8b2f4f1245df9b55 100644 (file)
@@ -2366,6 +2366,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
 
        if (revs->reverse && revs->reflog_info)
                die("cannot combine --reverse with --walk-reflogs");
+       if (revs->reflog_info && revs->limited)
+               die("cannot combine --walk-reflogs with history-limiting options");
        if (revs->rewrite_parents && revs->children.name)
                die("cannot combine --parents and --children");