summaryrefslogtreecommitdiff
path: root/builtin/add.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-08-12 21:09:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-12 21:09:58 (GMT)
commitfde61a0f72ccf86114f07353d93783b3b5ef4f57 (patch)
tree394613265c7adccaf5c96da0c7bc037b3c807f2d /builtin/add.c
parent535efaf6beb039b9f3b6f6c0f2b526eb8d02f99b (diff)
parent45abdee662186daa43e8ead8a8d0bcfaed5fa73d (diff)
downloadgit-fde61a0f72ccf86114f07353d93783b3b5ef4f57.zip
git-fde61a0f72ccf86114f07353d93783b3b5ef4f57.tar.gz
git-fde61a0f72ccf86114f07353d93783b3b5ef4f57.tar.bz2
Merge branch 'sb/remove-unused-var-from-builtin-add'
* sb/remove-unused-var-from-builtin-add: add: remove dead code
Diffstat (limited to 'builtin/add.c')
-rw-r--r--builtin/add.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/add.c b/builtin/add.c
index 4bd98b7..b2a5c57 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -375,7 +375,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
if (add_new_files) {
int baselen;
- struct pathspec empty_pathspec;
/* Set up the default git porcelain excludes */
memset(&dir, 0, sizeof(dir));
@@ -384,7 +383,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
setup_standard_excludes(&dir);
}
- memset(&empty_pathspec, 0, sizeof(empty_pathspec));
/* This picks up the paths that are not tracked */
baselen = fill_directory(&dir, &pathspec);
if (pathspec.nr)