cherry-pick: handle root commits with external strategies
[gitweb.git] / pretty.c
index 0252a21a0d62dc59a9325d0365db0c0061b70eb7..13618d82644b72adc6068add826daa72dfe64f38 100644 (file)
--- a/pretty.c
+++ b/pretty.c
@@ -935,11 +935,7 @@ static size_t format_commit_one(struct strbuf *sb, const char *placeholder,
                                              c->abbrev_parent_hashes.off;
                return 1;
        case 'm':               /* left/right/bottom */
-               strbuf_addch(sb, (commit->object.flags & BOUNDARY)
-                                ? '-'
-                                : (commit->object.flags & SYMMETRIC_LEFT)
-                                ? '<'
-                                : '>');
+               strbuf_addstr(sb, get_revision_mark(NULL, commit));
                return 1;
        case 'd':
                format_decoration(sb, commit);