Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add the WITH_P4IMPORT knob to the Makefile.
[gitweb.git]
/
builtin-ls-tree.c
diff --git
a/builtin-ls-tree.c
b/builtin-ls-tree.c
index 201defd9344a25e16066dc7d0a0a8f5707a930cb..6472610ac2fecb8096ecab8fe29331a6fd6c009b 100644
(file)
--- a/
builtin-ls-tree.c
+++ b/
builtin-ls-tree.c
@@
-118,7
+118,7
@@
int cmd_ls_tree(int argc, const char **argv, const char *prefix)
chomp_prefix = 0;
break;
}
- if (!
strncmp(argv[1]+2, "abbrev=",7
)) {
+ if (!
prefixcmp(argv[1]+2, "abbrev="
)) {
abbrev = strtoul(argv[1]+9, NULL, 10);
if (abbrev && abbrev < MINIMUM_ABBREV)
abbrev = MINIMUM_ABBREV;