summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-08-19 21:41:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-19 21:41:33 (GMT)
commit223b55a577dc37dcf2df7962497655ce4ebbb9e0 (patch)
treea0d91fbd73e8c87189d3d8117bcfdad5e3f74a87 /builtin
parent24493ff5d897d79b2710b98ba1ca714fc91cd557 (diff)
parent45abdee662186daa43e8ead8a8d0bcfaed5fa73d (diff)
downloadgit-223b55a577dc37dcf2df7962497655ce4ebbb9e0.zip
git-223b55a577dc37dcf2df7962497655ce4ebbb9e0.tar.gz
git-223b55a577dc37dcf2df7962497655ce4ebbb9e0.tar.bz2
Merge branch 'sb/remove-unused-var-from-builtin-add' into maint
* sb/remove-unused-var-from-builtin-add: add: remove dead code
Diffstat (limited to 'builtin')
-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)