Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/remove-unused-var-from-builtin-add'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 12 Aug 2015 21:09:58 +0000
(14:09 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 12 Aug 2015 21:09:58 +0000
(14:09 -0700)
* sb/remove-unused-var-from-builtin-add:
add: remove dead code
builtin/add.c
patch
|
blob
|
history
raw
(from parent 1:
535efaf
)
diff --git
a/builtin/add.c
b/builtin/add.c
index 4bd98b799e7e1a46beb09249ab2299f4d2b335b8..b2a5c57f0afde85a7584e1edc7a45b67d12d143d 100644
(file)
--- 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)