Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
add.c: remove unused argument from validate_pathspec()
author
Adam Spiers
<git@adamspiers.org>
Sun, 6 Jan 2013 16:58:07 +0000
(16:58 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 6 Jan 2013 22:26:37 +0000
(14:26 -0800)
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>
builtin/add.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
52ed189
)
diff --git
a/builtin/add.c
b/builtin/add.c
index c689f3725e84e88765ff7a0b79fc5ad338048fce..1f62ba3d2e245020f245822accc0fe19a7978a22 100644
(file)
--- a/
builtin/add.c
+++ b/
builtin/add.c
@@
-197,7
+197,7
@@
static void refresh(int verbose, const char **pathspec)
free(seen);
}
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);
{
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) {
const char **pathspec = NULL;
if (argc) {
- pathspec = validate_pathspec(arg
c, arg
v, prefix);
+ pathspec = validate_pathspec(argv, prefix);
if (!pathspec)
return -1;
}
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;
}
fprintf(stderr, _("Maybe you wanted to say 'git add .'?\n"));
return 0;
}
- pathspec = validate_pathspec(arg
c, arg
v, prefix);
+ pathspec = validate_pathspec(argv, prefix);
if (read_cache() < 0)
die(_("index file corrupt"));
if (read_cache() < 0)
die(_("index file corrupt"));