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

[PATCH] format-patch: autonumber by default

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Oct 2, 2008, 11:27 UTC
Message-ID
<1222946860-15518-1-git-send-email-giuseppe.bilotta@gmail.com>
Set auto-number true by default, allowing the format.number key to be
set to 'noauto' to override this.
---
 builtin-log.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/builtin-log.c b/builtin-log.c
index fc5e4da..5187dc2 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -426,7 +426,7 @@ static int istitlechar(char c)
 
 static const char *fmt_patch_suffix = ".patch";
 static int numbered = 0;
-static int auto_number = 0;
+static int auto_number = 1;
 
 static char **extra_hdr;
 static int extra_hdr_nr;
@@ -484,6 +484,10 @@ static int git_format_config(const char *var, const char *value, void *cb)
 			auto_number = 1;
 			return 0;
 		}
+		if (value && !strcasecmp(value, "noauto")) {
+			auto_number = 0;
+			return 0;
+		}
 		numbered = git_config_bool(var, value);
 		return 0;
 	}
-- 
1.5.6.5
Next: Johannes Schindelin
Message 1 of 21 in “format-patch: autonumber by default”
  1. format-patch: autonumber by defaultGiuseppe Bilotta, Oct 2, 2008
  2. Johannes SchindelinOct 2, 2008
  3. Giuseppe BilottaOct 2, 2008
  4. Johannes SchindelinOct 2, 2008
  5. format-patch: autonumber by defaultGiuseppe Bilotta, Oct 2, 2008
  6. Jakub NarebskiOct 2, 2008
  7. Andreas EricssonOct 2, 2008
  8. format-patch: autonumber by defaultGiuseppe Bilotta, Oct 2, 2008
  9. Jeff KingOct 2, 2008
  10. format-patch: autonumber by defaultGiuseppe Bilotta, Oct 2, 2008
  11. Jeff KingOct 2, 2008
  12. Brian GernhardtOct 2, 2008
  13. format-patch: autonumber by defaultBrian Gernhardt, Oct 2, 2008
  14. format-patch: autonumber by defaultBrian Gernhardt, Oct 2, 2008
  15. Brian GernhardtOct 2, 2008
  16. format-patch: autonumber by defaultBrian Gernhardt, Oct 2, 2008
  17. Eric W. BiedermanNov 4, 2009
  18. Junio C HamanoNov 4, 2009
  19. Brian GernhardtNov 4, 2009
  20. Andreas EricssonOct 2, 2008
  21. Johannes SixtOct 2, 2008

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.