]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/log.c
format-patch: show 0/1 and 1/1 for singleton patch with cover letter
authorJacob Keller <jacob.keller@gmail.com>
Tue, 23 Aug 2016 22:45:50 +0000 (15:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Aug 2016 22:59:11 +0000 (15:59 -0700)
commit957ed3a56c50f5c542e0cac58d75e1d4b9658ac3
tree0e89cf0328641a6b6d4551e370e6b67f02b7e57a
parent05219a1276341e72d8082d76b7f5ed394b7437a4
format-patch: show 0/1 and 1/1 for singleton patch with cover letter

Change the default behavior of git-format-patch to generate numbered
sequence of 0/1 and 1/1 when generating both a cover-letter and a single
patch. This standardizes the cover letter to have 0/N which helps
distinguish the cover letter from the patch itself. Since the behavior
is easily changed via configuration as well as the use of -n and -N this
should be acceptable default behavior.

Add tests for the new default behavior.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
t/t4021-format-patch-numbered.sh