Don't leak file descriptors from unavailable pack files.
[gitweb.git] / builtin-rev-list.c
index fb7fc92145b6a8baec340176abf40c6b37f45a8e..1bb3a06680194ce5855185ad1a1c7e39eeebba94 100644 (file)
@@ -54,6 +54,12 @@ static void show_commit(struct commit *commit)
                fputs(header_prefix, stdout);
        if (commit->object.flags & BOUNDARY)
                putchar('-');
+       else if (revs.left_right) {
+               if (commit->object.flags & SYMMETRIC_LEFT)
+                       putchar('<');
+               else
+                       putchar('>');
+       }
        if (revs.abbrev_commit && revs.abbrev)
                fputs(find_unique_abbrev(commit->object.sha1, revs.abbrev),
                      stdout);