X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fls-tree.c;h=dc86b0d9a997f98ad43ca2897055a92b8a3eb7d0;hb=16b8a3e4b94dc7f6e05b624eae3cf1eed7b358a5;hp=4484185afc4c144bc0d88d9c3832cbeb1515841b;hpb=2e0e8b68e3ba8ea87f001c45c78f9b7ce549c61f;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);