summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorJacob Keller <jacob.keller@gmail.com>2020-05-28 18:10:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-05-28 19:53:24 (GMT)
commitc81ca56bca2d4b9b2606211106ca4ae0fdded834 (patch)
treefc4e236b53acf01beef76160c9ee1eae5bc25def /contrib/completion/git-completion.bash
parent7f59d604292774a2c5c79a644419a9aa6c720365 (diff)
downloadgit-c81ca56bca2d4b9b2606211106ca4ae0fdded834.zip
git-c81ca56bca2d4b9b2606211106ca4ae0fdded834.tar.gz
git-c81ca56bca2d4b9b2606211106ca4ae0fdded834.tar.bz2
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 'contrib/completion/git-completion.bash')
0 files changed, 0 insertions, 0 deletions