]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
add -p: fix memory leak
[thirdparty/git.git] / revision.c
index 223e99db5d49e184f80ae2cd4f8129c786170798..6aa7f4f56755bdc2b79455c61a9882085980f90a 100644 (file)
@@ -1410,7 +1410,8 @@ static int limit_list(struct rev_info *revs)
                                continue;
                        break;
                }
-               if (revs->min_age != -1 && (commit->date > revs->min_age))
+               if (revs->min_age != -1 && (commit->date > revs->min_age) &&
+                   !revs->line_level_traverse)
                        continue;
                date = commit->date;
                p = &commit_list_insert(commit, p)->next;