1
0
mirror of https://github.com/git/git.git synced 2024-10-18 18:10:13 +02:00
git/contrib/completion
Philippe Blain c7153fad2d completion: commit: complete configured trailer tokens
Since 2daae3d1d1 (commit: add --trailer option, 2021-03-23), 'git
commit' can add trailers to commit messages. To make that feature more
pleasant to use at the command line, update the Bash completion code to
offer configured trailer tokens.

Add a __git_trailer_tokens function to list the configured trailers
tokens, and use it in _git_commit to suggest the configured tokens,
suffixing the completion words with ':' so that the user only has to add
the trailer value.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-09-07 12:37:07 -07:00
..
.gitattributes
git-completion.bash completion: commit: complete configured trailer tokens 2023-09-07 12:37:07 -07:00
git-completion.tcsh
git-completion.zsh
git-prompt.sh