merge-recursive: use abbreviated commit object name.
authorJunio C Hamano <junkio@cox.net>
Mon, 23 Oct 2006 07:36:22 +0000 (00:36 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 28 Oct 2006 00:16:40 +0000 (17:16 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
merge-recursive.c
index 2ba43ae84b20f993ba175f728297cf5360066872..ccfa905e995088f57550aa4717561c9d428911fe 100644 (file)
@@ -98,7 +98,7 @@ static void output_commit_title(struct commit *commit)
        if (commit->util)
                printf("virtual %s\n", (char *)commit->util);
        else {
-               printf("%s ", sha1_to_hex(commit->object.sha1));
+               printf("%s ", find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
                if (parse_commit(commit) != 0)
                        printf("(bad commit)\n");
                else {