format-patch: autonumber by default
commita567fdcb016e8e882ec0a1e044c9caac8f70e693
authorBrian Gernhardt <benji@silverinsanity.com>
Thu, 2 Oct 2008 20:55:39 +0000 (2 16:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Oct 2008 14:18:03 +0000 (18 07:18 -0700)
treef88049a47c7d2355574599e0beb49de7d47d9d6a
parent5c283eb13c94be6ca974aa722159dc9838d10d97
format-patch: autonumber by default

format-patch is most commonly used for multiple patches at once when
sending a patchset, in which case we want to number the patches; on
the other hand, single patches are not usually expected to be
numbered.

In other words, the typical behavior expected from format-patch is the
one obtained by enabling autonumber, so we set it to be the default.

Users that want to disable numbering for a particular patchset can do
so with the existing -N command-line switch.  Users that want to
change the default behavior can use the format.numbering config key.

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Test-updates-by: Jeff King <peff@peff.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
Documentation/config.txt
Documentation/git-format-patch.txt
builtin-log.c
t/t4013-diff-various.sh
t/t4013/diff.format-patch_--attach_--stdout_initial..master
t/t4013/diff.format-patch_--attach_--stdout_initial..master^
t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master
t/t4013/diff.format-patch_--inline_--stdout_initial..master
t/t4013/diff.format-patch_--inline_--stdout_initial..master^
t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master [copied from t/t4013/diff.format-patch_--stdout_initial..master with 97% similarity]
t/t4013/diff.format-patch_--stdout_--numbered_initial..master [copied from t/t4013/diff.format-patch_--stdout_initial..master with 93% similarity]
t/t4013/diff.format-patch_--stdout_initial..master
t/t4013/diff.format-patch_--stdout_initial..master^
t/t4021-format-patch-numbered.sh
t/t4151-am-abort.sh