path: root/contrib/completion
diff options
authorJacob Keller <>2020-05-28 18:10:39 (GMT)
committerJunio C Hamano <>2020-05-28 19:53:24 (GMT)
commitc81ca56bca2d4b9b2606211106ca4ae0fdded834 (patch)
treefc4e236b53acf01beef76160c9ee1eae5bc25def /contrib/completion
parent7f59d604292774a2c5c79a644419a9aa6c720365 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'contrib/completion')
0 files changed, 0 insertions, 0 deletions