diff options
author | Martin Langhoff <martin@catalyst.net.nz> | 2006-05-08 10:03:37 +1200 |
---|---|---|
committer | Martin Langhoff <martin@catalyst.net.nz> | 2006-05-08 10:03:37 +1200 |
commit | 50c08d48722149d95f46bcc80a5211ea04b8a809 (patch) | |
tree | 15c465be37ba4fdd8824edb95085b81076b73af9 /merge-tree.c | |
parent | cvsserver: use git-rev-list instead of git-log (diff) | |
parent | Fix users of prefix_path() to free() only when necessary (diff) | |
download | tgif-50c08d48722149d95f46bcc80a5211ea04b8a809.tar.xz |
Merge with git://kernel.org/pub/scm/git/git.git
Diffstat (limited to 'merge-tree.c')
-rw-r--r-- | merge-tree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/merge-tree.c b/merge-tree.c index 50528d5e43..cc7b5bd891 100644 --- a/merge-tree.c +++ b/merge-tree.c @@ -24,16 +24,14 @@ static const char *sha1_to_hex_zero(const unsigned char *sha1) static void resolve(const char *base, struct name_entry *branch1, struct name_entry *result) { - char branch1_sha1[50]; - /* If it's already branch1, don't bother showing it */ if (!branch1) return; - memcpy(branch1_sha1, sha1_to_hex_zero(branch1->sha1), 41); printf("0 %06o->%06o %s->%s %s%s\n", branch1->mode, result->mode, - branch1_sha1, sha1_to_hex_zero(result->sha1), + sha1_to_hex_zero(branch1->sha1), + sha1_to_hex_zero(result->sha1), base, result->path); } |