]> git.ipfire.org Git - thirdparty/git.git/commit
completion: add tests showing subpar -c/-C startpoint completion
authorJacob Keller <jacob.keller@gmail.com>
Thu, 28 May 2020 18:10:37 +0000 (11:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 May 2020 19:53:24 +0000 (12:53 -0700)
commitb07d77a2baae626370be8ae35efd3ebaf9befbc2
treeb6526d61476a5dc6d9a713422da276d3b08a9097
parentc55b99c3d3359debb8601b6f687c94deab59ad2d
completion: add tests showing subpar -c/-C startpoint completion

When using the branch creation argument for git switch or git checkout,
-c/-C or -b/-B, the commands operate in a different mode: `git switch -c
<branch> <some-reference>` means to create a branch named <branch> at
the commit referred to by <some-reference>.

When completing the start-point, we ought to always complete all valid
references.

Add tests for the completion of the start-point to -c/-C and -b/-B.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9902-completion.sh