Code

ls: remove redundant logic
authorErik Faye-Lund <kusmabite@googlemail.com>
Sat, 20 Mar 2010 18:55:28 +0000 (19:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Mar 2010 23:23:44 +0000 (16:23 -0700)
commit531e758d9c861facd4ebcc8c9b0e4e1443b5665a
tree0782bcd9e4d0133d3acec2215942bbc9f31c265b
parent28a53178fcd3c9a6576b20040982ca0b9e972f42
ls: remove redundant logic

find_unique_abbrev() already returns the full SHA-1 if abbrev = 0,
so we can remove the logic that avoids the call.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c
builtin/ls-tree.c