diff options
author | Adam Spiers <git@adamspiers.org> | 2013-01-06 16:58:07 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-06 14:26:37 -0800 |
commit | f8a1113b47ab6ab329116325a0a78c68efc22485 (patch) | |
tree | df1628e3b6d0484163968609198e98e95aaff215 | |
parent | dir.c: improve docs for match_pathspec() and match_pathspec_depth() (diff) | |
download | tgif-f8a1113b47ab6ab329116325a0a78c68efc22485.tar.xz |
add.c: remove unused argument from validate_pathspec()
The 'argc' argument passed to validate_pathspec() was never used.
Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin/add.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/add.c b/builtin/add.c index c689f3725e..1f62ba3d2e 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -197,7 +197,7 @@ static void refresh(int verbose, const char **pathspec) free(seen); } -static const char **validate_pathspec(int argc, const char **argv, const char *prefix) +static const char **validate_pathspec(const char **argv, const char *prefix) { const char **pathspec = get_pathspec(prefix, argv); @@ -248,7 +248,7 @@ int interactive_add(int argc, const char **argv, const char *prefix, int patch) const char **pathspec = NULL; if (argc) { - pathspec = validate_pathspec(argc, argv, prefix); + pathspec = validate_pathspec(argv, prefix); if (!pathspec) return -1; } @@ -414,7 +414,7 @@ int cmd_add(int argc, const char **argv, const char *prefix) fprintf(stderr, _("Maybe you wanted to say 'git add .'?\n")); return 0; } - pathspec = validate_pathspec(argc, argv, prefix); + pathspec = validate_pathspec(argv, prefix); if (read_cache() < 0) die(_("index file corrupt")); |