rebase: update `--empty=ask` to `--empty=stop`
commitc282eba2d561b726e4a60c8837e4eaa2ac6537fa
authorBrian Lyles <brianmlyles@gmail.com>
Mon, 25 Mar 2024 23:16:50 +0000 (25 18:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 23:45:40 +0000 (25 16:45 -0700)
treed7ea3d0101013d6a8c3f8571790111923daeda73
parent64a443efe4846d9cf09c7ff50cb9a6660fb49b50
rebase: update `--empty=ask` to `--empty=stop`

When git-am(1) got its own `--empty` option in 7c096b8d61 (am: support
--empty=<option> to handle empty patches, 2021-12-09), `stop` was used
instead of `ask`. `stop` is a more accurate term for describing what
really happens, and consistency is good.

Update git-rebase(1) to also use `stop`, while keeping `ask` as a
deprecated synonym. Update the tests to primarily use `stop`, but also
ensure that `ask` is still allowed.

In a future commit, we'll be adding a new `--empty` option for
git-cherry-pick(1) as well, making the consistency even more relevant.

Reported-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Brian Lyles <brianmlyles@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt
builtin/rebase.c
t/t3424-rebase-empty.sh