X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin%2Fls-tree.c;h=dc86b0d9a997f98ad43ca2897055a92b8a3eb7d0;hb=b2a60953085651fe892ee20508fe2f561f0bba8f;hp=4484185afc4c144bc0d88d9c3832cbeb1515841b;hpb=53997a30f8138f41d1d9c7a45e84106cc21c0558;p=git.git diff --git a/builtin/ls-tree.c b/builtin/ls-tree.c index 4484185af..dc86b0d9a 100644 --- a/builtin/ls-tree.c +++ b/builtin/ls-tree.c @@ -103,13 +103,11 @@ static int show_tree(const unsigned char *sha1, const char *base, int baselen, } else strcpy(size_text, "-"); printf("%06o %s %s %7s\t", mode, type, - abbrev ? find_unique_abbrev(sha1, abbrev) - : sha1_to_hex(sha1), + find_unique_abbrev(sha1, abbrev), size_text); } else printf("%06o %s %s\t", mode, type, - abbrev ? find_unique_abbrev(sha1, abbrev) - : sha1_to_hex(sha1)); + find_unique_abbrev(sha1, abbrev)); } write_name_quotedpfx(base + chomp_prefix, baselen - chomp_prefix, pathname, stdout, line_termination);