Skip to content

Commit 9ccb3bc

Browse files
Felipe Contrerasgitster
authored andcommitted
git add: trivial codestyle cleanup
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>
1 parent aa98eb3 commit 9ccb3bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin-add.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static const char * const builtin_add_usage[] = {
1515
"git add [options] [--] <filepattern>...",
1616
NULL
1717
};
18-
static int patch_interactive = 0, add_interactive = 0;
18+
static int patch_interactive, add_interactive;
1919
static int take_worktree_changes;
2020

2121
static void fill_pathspec_matches(const char **pathspec, char *seen, int specs)

0 commit comments

Comments
 (0)