X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-ls-tree.c;h=6472610ac2fecb8096ecab8fe29331a6fd6c009b;hb=0053e902b4f777ba454b62263d3695e5292b1559;hp=201defd9344a25e16066dc7d0a0a8f5707a930cb;hpb=96f1e58f524fac8607cfc38896b365b6e8365b51;p=git.git diff --git a/builtin-ls-tree.c b/builtin-ls-tree.c index 201defd93..6472610ac 100644 --- 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;