Skip to content

Commit

Permalink
Merge branch 'sb/remove-unused-var-from-builtin-add' into maint
Browse files Browse the repository at this point in the history
* sb/remove-unused-var-from-builtin-add:
  add: remove dead code
  • Loading branch information
Junio C Hamano committed Aug 19, 2015
2 parents 24493ff + 45abdee commit 223b55a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions builtin/add.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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)
Expand Down

0 comments on commit 223b55a

Please sign in to comment.