}
}
- 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);
'
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 &&