tag.c: use 'ref-filter' data structures
[gitweb.git] / builtin / show-branch.c
index 826d9fa5fbd6c42ecfac96963ae816a25f77780c..c87c46eb387a8093af92864081673be1a36b5999 100644 (file)
@@ -784,7 +784,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
                        else
                                msg++;
                        reflog_msg[i] = xstrfmt("(%s) %s",
-                                               show_date(timestamp, tz, 1),
+                                               show_date(timestamp, tz,
+                                                         DATE_MODE(RELATIVE)),
                                                msg);
                        free(logmsg);
                        sprintf(nth_desc, "%s@{%d}", *av, base+i);
@@ -846,7 +847,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
                commit = lookup_commit_reference(revkey.hash);
                if (!commit)
                        die("cannot find commit %s (%s)",
-                           ref_name[num_rev], revkey.hash);
+                           ref_name[num_rev], oid_to_hex(&revkey));
                parse_commit(commit);
                mark_seen(commit, &seen);