git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git add: trivial codestyle cleanup

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Feb 24, 2009, 21:59 UTC
Message-ID
<1235512745-26814-2-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1235512745-26814-1-git-send-email-felipe.contreras@gmail.com>
Global static variables don't need to be initialized to 0/NULL.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 builtin-add.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-add.c b/builtin-add.c
index ac98c83..08443f2 100644
--- a/builtin-add.c
+++ b/builtin-add.c
@@ -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)
-- 
1.6.1.3
Previous: Felipe ContrerasNext: Felipe Contreras
Message 2 of 12 in “Fix a bunch of pointer declarations (codestyle)”
  1. Fix a bunch of pointer declarations (codestyle)Felipe Contreras, Feb 24, 2009
  2. git add: trivial codestyle cleanupFelipe Contreras, Feb 24, 2009
  3. git config: improve documentationFelipe Contreras, Feb 24, 2009
  4. sha1_file.c: fix typoFelipe Contreras, Feb 24, 2009
  5. Junio C HamanoFeb 25, 2009
  6. Johannes SchindelinFeb 25, 2009
  7. Felipe ContrerasMay 1, 2009
  8. Junio C HamanoFeb 25, 2009
  9. Junio C HamanoFeb 25, 2009
  10. Felipe ContrerasFeb 25, 2009
  11. Junio C HamanoFeb 25, 2009
  12. Felipe ContrerasMar 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.