Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
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
|
history
raw
|
patch
| inline |
side by side
(parent:
053a6b1
)
diff --git
a/builtin/add.c
b/builtin/add.c
index de79f35efcb7fff541557f6d0d02ed768c602fbf..fc7bf9f4cada189f82ca19246aa28bfb69af81e6 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)