mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Merge branch 'sb/remove-unused-var-from-builtin-add' into maint
* sb/remove-unused-var-from-builtin-add: add: remove dead code
This commit is contained in:
commit
223b55a577
|
@ -375,7 +375,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
|
||||||
|
|
||||||
if (add_new_files) {
|
if (add_new_files) {
|
||||||
int baselen;
|
int baselen;
|
||||||
struct pathspec empty_pathspec;
|
|
||||||
|
|
||||||
/* Set up the default git porcelain excludes */
|
/* Set up the default git porcelain excludes */
|
||||||
memset(&dir, 0, sizeof(dir));
|
memset(&dir, 0, sizeof(dir));
|
||||||
|
@ -384,7 +383,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
|
||||||
setup_standard_excludes(&dir);
|
setup_standard_excludes(&dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&empty_pathspec, 0, sizeof(empty_pathspec));
|
|
||||||
/* This picks up the paths that are not tracked */
|
/* This picks up the paths that are not tracked */
|
||||||
baselen = fill_directory(&dir, &pathspec);
|
baselen = fill_directory(&dir, &pathspec);
|
||||||
if (pathspec.nr)
|
if (pathspec.nr)
|
||||||
|
|
Loading…
Reference in a new issue