chiark / gitweb /
git-debrebase: Fix error message for wrong use of -i
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 Feb 2020 10:25:07 +0000 (10:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Jun 2020 18:04:08 +0000 (19:04 +0100)
commit53ed7494028990bcfc7ddd778ed264ad7348624e
tree3e7af19a61bb37ccde2327dfeae1a7aafac266e6
parenta1f11a98f79b9a907a5f48e108f0c794a4a500cb
git-debrebase: Fix error message for wrong use of -i

Getopt::Long with "i:s" parses "-i something" as "-i" with a value of
"something".  Maybe I didn't know this when I wrote this code,
and thought the check for $val would only reject "-isomething".

But "git-rebrebase ... -i something" is wrong because it would mean
"git-rebase -i something" and we do not permit the user to specify
their own base.  So it is right to bail out in this case.

However, the message was wrong, since it refers to cuddling, and it
can be caused by a non-cuddled non-option argument.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
git-debrebase