Code

git add: trivial codestyle cleanup
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 24 Feb 2009 21:59:03 +0000 (23:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Feb 2009 08:49:54 +0000 (00:49 -0800)
Global static variables don't need to be initialized to 0/NULL.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-add.c

index ac98c8354d84a7f556c22c53fbe9007832ac4346..08443f2f1ecf7d9edd21cec11fa74548c3326df5 100644 (file)
@@ -15,7 +15,7 @@ static const char * const builtin_add_usage[] = {
        "git add [options] [--] <filepattern>...",
        NULL
 };
-static int patch_interactive = 0, add_interactive = 0;
+static int patch_interactive, add_interactive;
 static int take_worktree_changes;
 
 static void fill_pathspec_matches(const char **pathspec, char *seen, int specs)