From: Giuseppe Bilotta Date: Thu, 02 Oct 2008 11:27:40 GMT Subject: [PATCH] format-patch: autonumber by default 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