From: Jonathan Nieder <jrnieder@gmail.com>
To: Christian Couder <chriscool@tuxfamily.org>
Cc: Junio C Hamano <gitster@pobox.com>,
git@vger.kernel.org,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Sverre Rabbelier <srabbelier@gmail.com>,
Ramkumar Ramachandra <artagnon@gmail.com>,
Jeff King <peff@peff.net>
Subject: Re: [PATCH 4/4] revert: improve success message by adding abbreviated commit sha1
Date: Thu, 15 Jul 2010 17:51:41 -0500 [thread overview]
Message-ID: <20100715225141.GB7253@burratino> (raw)
In-Reply-To: <20100713232816.7738.78221.chriscool@tuxfamily.org>
Christian Couder wrote:
> --- a/t/t3508-cherry-pick-many-commits.sh
> +++ b/t/t3508-cherry-pick-many-commits.sh
> @@ -24,9 +24,9 @@ test_expect_success setup '
>
> test_expect_success 'cherry-pick first..fourth works' '
> cat <<-EOF > expected &&
> - Finished one cherry-pick.
> - Finished one cherry-pick.
> - Finished one cherry-pick.
> + Finished cherry-pick commit $(git rev-parse --short second).
> + Finished cherry-pick commit $(git rev-parse --short third).
> + Finished cherry-pick commit $(git rev-parse --short fourth).
If the redirections are changed to <<-\EOF before, then they would
need to be changed back to <<-EOF here.
> Instead of "Finished one cherry-pick." or "Finished one
> revert.", we now print "Finished cherry-pick commit
> <abbreviated sha1>."
“Finished cherry-pick of commit f67ab8.” sounds more better to my ear.
Finished cherry-pick of foo.
Finished cherry-pick of bar.
Finished cherry-pick of baz.
etc
is a lot saner than
Finished one cherry-pick.
Finished one cherry-pick.
Finisehd one cherry-pick.
etc
Thanks for making it happen.
diff --git a/builtin/revert.c b/builtin/revert.c
index 36479f9..e261fb2 100644
--- a/builtin/revert.c
+++ b/builtin/revert.c
@@ -492,7 +492,7 @@ static int do_pick_commit(void)
}
}
- strbuf_addf(&mebuf, "%s commit %s", me,
+ strbuf_addf(&mebuf, "%s of commit %s", me,
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
if (!strategy || !strcmp(strategy, "recursive") || action == REVERT) {
diff --git a/t/t3508-cherry-pick-many-commits.sh b/t/t3508-cherry-pick-many-commits.sh
index 1bd3ca1..5af5905 100755
--- a/t/t3508-cherry-pick-many-commits.sh
+++ b/t/t3508-cherry-pick-many-commits.sh
@@ -24,9 +24,9 @@ test_expect_success setup '
test_expect_success 'cherry-pick first..fourth works' '
cat <<-EOF > expected &&
- Finished cherry-pick commit $(git rev-parse --short second).
- Finished cherry-pick commit $(git rev-parse --short third).
- Finished cherry-pick commit $(git rev-parse --short fourth).
+ Finished cherry-pick of commit $(git rev-parse --short second).
+ Finished cherry-pick of commit $(git rev-parse --short third).
+ Finished cherry-pick of commit $(git rev-parse --short fourth).
EOF
git checkout -f master &&
@@ -41,9 +41,9 @@ test_expect_success 'cherry-pick first..fourth works' '
test_expect_success 'cherry-pick --strategy resolve first..fourth works' '
cat <<-EOF > expected &&
- Finished cherry-pick commit $(git rev-parse --short second) with strategy resolve.
- Finished cherry-pick commit $(git rev-parse --short third) with strategy resolve.
- Finished cherry-pick commit $(git rev-parse --short fourth) with strategy resolve.
+ Finished cherry-pick of commit $(git rev-parse --short second) with strategy resolve.
+ Finished cherry-pick of commit $(git rev-parse --short third) with strategy resolve.
+ Finished cherry-pick of commit $(git rev-parse --short fourth) with strategy resolve.
EOF
git checkout -f master &&
--
next prev parent reply other threads:[~2010-07-15 22:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 23:28 [PATCH 4/4] revert: improve success message by adding abbreviated commit sha1 Christian Couder
2010-07-15 22:51 ` Jonathan Nieder [this message]
2010-07-17 20:17 ` Christian Couder
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=20100715225141.GB7253@burratino \
--to=jrnieder@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=artagnon@gmail.com \
--cc=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=srabbelier@gmail.com \
/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).