]> git.ipfire.org Git - thirdparty/git.git/blobdiff - log-tree.c
t4202-log.sh: Test git log --no-walk sort order
[thirdparty/git.git] / log-tree.c
index 5bd29e6994c92268ec576671bb8564b57d1a5c9d..6f73c17d74bee326a40505b29bba762bade2451e 100644 (file)
@@ -25,6 +25,7 @@ static int add_ref_decoration(const char *refname, const unsigned char *sha1, in
        struct object *obj = parse_object(sha1);
        if (!obj)
                return 0;
+       refname = prettify_refname(refname);
        add_name_decoration("", refname, obj);
        while (obj->type == OBJ_TAG) {
                obj = ((struct tag *)obj)->tagged;
@@ -320,7 +321,8 @@ void show_log(struct rev_info *opt)
        }
 
        /*
-        * If use_terminator is set, add a newline at the end of the entry.
+        * If use_terminator is set, we already handled any record termination
+        * at the end of the last record.
         * Otherwise, add a diffopt.line_termination character before all
         * entries but the first.  (IOW, as a separator between entries)
         */