completion: loosen and document the requirement around completing alias
commit8d73a2cc036199a25cc97586937267ec14cb6eae
authorJunio C Hamano <gitster@pobox.com>
Wed, 20 Sep 2023 18:28:22 +0000 (20 11:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Sep 2023 18:41:41 +0000 (20 11:41 -0700)
tree04fd25d534e31bb830d18e042a937396aaeea738
parent6bdb5b11d60b6990a62bd924d2e7c3f0115d4827
completion: loosen and document the requirement around completing alias

Recently we started to tell users to spell ": git foo ;" with
space(s) around 'foo' for an alias to be completed similarly
to the 'git foo' command.  It however is easy to also allow users to
spell it in a more natural way with the semicolon attached to 'foo',
i.e. ": git foo;".  Also, add a comment to note that 'git' is optional
and writing ": foo;" would complete the alias just fine.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
t/t9902-completion.sh