X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=log-tree.c;h=6f73c17d74bee326a40505b29bba762bade2451e;hb=a0f4afbe87ddda7902e36350d163dea146166550;hp=5bd29e6994c92268ec576671bb8564b57d1a5c9d;hpb=c276857ee250ca1c3a36cba8358f50ba01e97917;p=git.git diff --git a/log-tree.c b/log-tree.c index 5bd29e699..6f73c17d7 100644 --- a/log-tree.c +++ b/log-tree.c @@ -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) */