summaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-10-19 16:06:44 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-10-19 16:06:44 -0700
commitfd6e237d4e8b07287c8349aa99e897f4eace4ff3 (patch)
tree8753aa2593c28be0deddb95421eb8d399c24e693 /builtin-log.c
parentMerge branch 'sp/describe-lwtag' (diff)
parentformat-patch: autonumber by default (diff)
downloadtgif-fd6e237d4e8b07287c8349aa99e897f4eace4ff3.tar.xz
Merge branch 'gb/formatpatch-autonbr'
* gb/formatpatch-autonbr: format-patch: autonumber by default
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c
index 794821f6bc..a0944f70a4 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;
@@ -485,6 +485,7 @@ static int git_format_config(const char *var, const char *value, void *cb)
return 0;
}
numbered = git_config_bool(var, value);
+ auto_number = auto_number && numbered;
return 0;
}