/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
053a6b1
)
add: remove dead code
author
Stefan Beller
<sbeller@google.com>
Fri, 31 Jul 2015 00:19:16 +0000
(17:19 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Jul 2015 15:49:33 +0000
(08:49 -0700)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
patch
|
blob
|
blame
|
history
diff --git
a/builtin/add.c
b/builtin/add.c
index
de79f35
..
fc7bf9f
100644
(file)
--- a/
builtin/add.c
+++ b/
builtin/add.c
@@
-419,7
+419,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));
@@
-428,7
+427,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)