X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-unpack-objects.c;h=8f8e898516e0ec73fde063ae17d26a26612c5c20;hb=cc44c7655fe2dd0cfb46e841156634fe622df397;hp=e6d75748444ef4fc263970d4fe87b4623d2790fc;hpb=66f3b35fde42b9a235d8fd1c4d4a80f94bfd6a41;p=git.git diff --git a/builtin-unpack-objects.c b/builtin-unpack-objects.c index e6d757484..8f8e89851 100644 --- a/builtin-unpack-objects.c +++ b/builtin-unpack-objects.c @@ -8,8 +8,6 @@ #include "tag.h" #include "tree.h" -#include - static int dry_run, quiet, recover, has_errors; static const char unpack_usage[] = "git-unpack-objects [-n] [-q] [-r] < pack-file"; @@ -371,7 +369,7 @@ int cmd_unpack_objects(int argc, const char **argv, const char *prefix) recover = 1; continue; } - if (!strncmp(arg, "--pack_header=", 14)) { + if (!prefixcmp(arg, "--pack_header=")) { struct pack_header *hdr; char *c;