diff options
author | Jacob Keller <jacob.keller@gmail.com> | 2020-05-28 11:10:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-28 12:53:24 -0700 |
commit | c81ca56bca2d4b9b2606211106ca4ae0fdded834 (patch) | |
tree | fc4e236b53acf01beef76160c9ee1eae5bc25def /rebase.c | |
parent | completion: add tests showing subpar -c/C argument completion (diff) | |
download | tgif-c81ca56bca2d4b9b2606211106ca4ae0fdded834.tar.xz |
completion: add tests showing subpar switch/checkout --orphan logic
Similar to -c/-C, --orphan takes an argument which is the branch name to
use. We ought to complete this branch name using similar rules as to how
we complete new branch names for -c/-C and -b/-B. Namely, limit the
total number of options provided by completing to the local branches.
Additionally, git switch --orphan does not take any start point and will
always create using the empty-tree. Thus, after the branch name is
completed, git switch --orphan should not complete any references.
Add test cases showing the expected behavior of --orphan, for both the
argument and starting point.
Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rebase.c')
0 files changed, 0 insertions, 0 deletions