[PATCH] add: remove dead code
- From
Stefan Beller <sbeller@google.com>
- Date
- Jul 31, 2015, 00:19 UTC
- Message-ID
- <1438301956-1658-1-git-send-email-sbeller@google.com>
Signed-off-by: Stefan Beller <sbeller@google.com> ---
So I was trying to understand how to implement "git add .gitmodules" as I intend to rewrite git submodules in C.
builtin/add.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/builtin/add.c b/builtin/add.c index 4bd98b7..b2a5c57 100644 --- 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)
-- 2.5.0.rc1.391.g15b60ce