summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b2c5b6)
raw | patch | inline | side by side (parent: 3b2c5b6)
author | Christian Couder <chriscool@tuxfamily.org> | |
Tue, 13 Jul 2010 23:28:15 +0000 (01:28 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 16 Jul 2010 22:26:03 +0000 (15:26 -0700) |
Instead of saying "Finished one cherry-pick." or "Finished one revert.",
we now say "Finished cherry-pick of commit <abbreviated sha1>." or
"Finished revert of commit <abbreviated sha1>." which is more informative,
especially when cherry-picking or reverting many commits.
In case of failure the message is now "Automatic cherry-pick of commit
<abbreviated sha1> failed." instead of "Automatic cherry-pick failed."
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
we now say "Finished cherry-pick of commit <abbreviated sha1>." or
"Finished revert of commit <abbreviated sha1>." which is more informative,
especially when cherry-picking or reverting many commits.
In case of failure the message is now "Automatic cherry-pick of commit
<abbreviated sha1> failed." instead of "Automatic cherry-pick failed."
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c | patch | blob | history | |
t/t3508-cherry-pick-many-commits.sh | patch | blob | history |
diff --git a/builtin/revert.c b/builtin/revert.c
index ec931bdcfcc7089753f3a30b914fee74df6d80f5..e261fb23916724e9bbb3fa664f2aba13f6ada83e 100644 (file)
--- a/builtin/revert.c
+++ b/builtin/revert.c
}
}
- strbuf_addstr(&mebuf, me);
+ strbuf_addf(&mebuf, "%s of commit %s", me,
+ find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
if (!strategy || !strcmp(strategy, "recursive") || action == REVERT) {
res = do_recursive_merge(base, next, base_label, next_label,
if (!no_commit)
res = run_git_commit(defmsg);
if (!res)
- fprintf(stderr, "Finished one %s.\n", mebuf.buf);
+ fprintf(stderr, "Finished %s.\n", mebuf.buf);
}
strbuf_release(&mebuf);
index d90b365fd2efbe24f877d6695b87996f618963e4..6044173007c44882049ab187e2d97265215f2604 100755 (executable)
'
test_expect_success 'cherry-pick first..fourth works' '
- cat <<-\EOF >expected &&
- Finished one cherry-pick.
- Finished one cherry-pick.
- Finished one cherry-pick.
+ cat <<-EOF >expected &&
+ 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 &&
'
test_expect_success 'cherry-pick --strategy resolve first..fourth works' '
- cat <<-\EOF >expected &&
- Finished one cherry-pick with strategy resolve.
- Finished one cherry-pick with strategy resolve.
- Finished one cherry-pick with strategy resolve.
+ cat <<-EOF >expected &&
+ 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 &&