]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3510-cherry-pick-sequence.sh
cherry-pick: add test for `--skip` advice in `git commit`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 6 Dec 2019 16:06:07 +0000 (16:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2019 17:32:01 +0000 (09:32 -0800)
commit5b7a64df40bec755b0d9ef477764e45ba72abf7b
tree040356b766059a1b153b5848dac8e2c4557cc9de
parent780308d060b2756ed52913ad2c1328c0d7049c05
cherry-pick: add test for `--skip` advice in `git commit`

In dcb500dc16c (cherry-pick/revert: advise using --skip, 2019-07-02),
`git commit` learned to suggest to run `git cherry-pick --skip` when
trying to cherry-pick an empty patch, but that was never tested for.

Here is a test that verifies that a message is given to the user that
contains the correct invocation.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3510-cherry-pick-sequence.sh