From: Jeff King <peff@peff.net>
To: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Cc: git@vger.kernel.org, Jakub Narebski <jnareb@gmail.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
"Shawn O. Pearce" <spearce@spearce.org>
Subject: Re: [PATCH] format-patch: autonumber by default
Date: Thu, 2 Oct 2008 17:06:12 -0400 [thread overview]
Message-ID: <20081002210611.GA29480@coredump.intra.peff.net> (raw)
In-Reply-To: <1222978500-5780-1-git-send-email-giuseppe.bilotta@gmail.com>
On Thu, Oct 02, 2008 at 10:15:00PM +0200, Giuseppe Bilotta wrote:
> Documentation/config.txt | 5 +++--
> Documentation/git-format-patch.txt | 9 ++++++---
> builtin-log.c | 6 +++++-
> 3 files changed, 14 insertions(+), 6 deletions(-)
Thanks, the documentation updates look good to me. There are also some
updates required in t4013 (since the expected outputs for some instances
will now be numbered) and t4020 (which explicitly checks that the
default is no numbering). Probably t4020 should be modified in light of
the new default, like so:
---
t/t4021-format-patch-numbered.sh | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/t/t4021-format-patch-numbered.sh b/t/t4021-format-patch-numbered.sh
index 43d64bb..390af23 100755
--- a/t/t4021-format-patch-numbered.sh
+++ b/t/t4021-format-patch-numbered.sh
@@ -45,17 +45,22 @@ test_numbered() {
grep "^Subject: \[PATCH 2/2\]" $1
}
-test_expect_success 'Default: no numbered' '
+test_expect_success 'single patch defaults to no numbers' '
+ git format-patch --stdout HEAD~1 >patch0.single &&
+ test_single_no_numbered patch0.single
+'
+
+test_expect_success 'multiple patch defaults to numbered' '
- git format-patch --stdout HEAD~2 >patch0 &&
- test_no_numbered patch0
+ git format-patch --stdout HEAD~2 >patch0.multiple &&
+ test_numbered patch0.multiple
'
test_expect_success 'Use --numbered' '
- git format-patch --numbered --stdout HEAD~2 >patch1 &&
- test_numbered patch1
+ git format-patch --numbered --stdout HEAD~1 >patch1 &&
+ test_single_numbered patch1
'
--
1.6.0.2.570.g2c958
next prev parent reply other threads:[~2008-10-02 21:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-02 11:27 [PATCH] format-patch: autonumber by default Giuseppe Bilotta
2008-10-02 12:33 ` Johannes Schindelin
2008-10-02 13:10 ` Giuseppe Bilotta
2008-10-02 13:42 ` Johannes Schindelin
2008-10-02 13:47 ` Giuseppe Bilotta
2008-10-02 14:08 ` Jakub Narebski
2008-10-02 14:14 ` Andreas Ericsson
2008-10-02 17:58 ` Giuseppe Bilotta
2008-10-02 20:03 ` Jeff King
2008-10-02 20:15 ` Giuseppe Bilotta
2008-10-02 21:06 ` Jeff King [this message]
2008-10-02 20:17 ` Brian Gernhardt
2008-10-02 20:36 ` Brian Gernhardt
2008-10-02 20:41 ` Brian Gernhardt
2008-10-02 20:50 ` Brian Gernhardt
2008-10-02 20:55 ` [PATCH v2] " Brian Gernhardt
2009-11-04 11:20 ` Eric W. Biederman
2009-11-04 17:38 ` Junio C Hamano
2009-11-04 17:48 ` Brian Gernhardt
2008-10-02 13:43 ` [PATCH] " Andreas Ericsson
2008-10-02 13:54 ` Johannes Sixt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081002210611.GA29480@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=giuseppe.bilotta@gmail.com \
--cc=jnareb@gmail.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).