Skip to content

Commit

Permalink
add: remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Jul 31, 2015
1 parent 053a6b1 commit 45abdee
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 @@ -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));
Expand All @@ -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)
Expand Down

0 comments on commit 45abdee

Please sign in to comment.