diff options
| author | Britton Leo Kerin <britton.kerin@gmail.com> | 2024-02-06 12:50:45 -0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-02-06 15:11:46 -0800 |
| commit | 41928aeb45e70d4361c780cc69d3975faee5eec4 (patch) | |
| tree | b6d53152c2e95d8836b8bfa91294b8ebb2ce6ff3 /t/t9902-completion.sh | |
| parent | completion: bisect: complete custom terms and related options (diff) | |
| download | git-41928aeb45e70d4361c780cc69d3975faee5eec4.tar.gz git-41928aeb45e70d4361c780cc69d3975faee5eec4.zip | |
completion: bisect: complete missing --first-parent and - -no-checkout options
The --first-parent and --no-checkout options to the start subcommand of
git-bisect(1) are not completed.
Enable completion of the --first-parent and --no-checkout options to the
start subcommand. Add test.
Signed-off-by: Britton Leo Kerin <britton.kerin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
| -rwxr-xr-x | t/t9902-completion.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 304903b1a7..8fcd1cfa7e 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -1271,6 +1271,17 @@ test_expect_success 'git bisect - when not bisecting, complete only replay and s EOF ' +test_expect_success 'git bisect - complete options to start subcommand' ' + test_completion "git bisect start --" <<-\EOF + --term-new Z + --term-bad Z + --term-old Z + --term-good Z + --no-checkout Z + --first-parent Z + EOF +' + test_expect_success 'setup for git-bisect tests requiring a repo' ' git init git-bisect && ( |
