git/contrib/completion
Junio C Hamano a039ee6757 completion: no-op refactoring of diff completion
The "git diff" completion function punts very early when it sees
"--" on the command line, since it is a sign that options or
revisions can appear and the current completion does not need to do
anything "git diff" specific. By returning, it lets Bash default
action that completes the names of the files in $PWD to kick in.

In preparation for the next step to change what happens when we
"punt", arrange the code flow to avoid this early return.  The
behaviour at this step is unchanged, but the control flow just
falls straight to the end.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-08-12 10:14:42 -07:00
..
.gitattributes
git-completion.bash completion: no-op refactoring of diff completion 2026-08-12 10:14:42 -07:00
git-completion.tcsh
git-completion.zsh completion: fix zsh alias listing for subsection aliases 2026-02-19 10:13:20 -08:00
git-prompt.sh git-prompt: support custom 0-width PS1 markers 2024-08-20 08:28:19 -07:00
meson.build contrib/completion: install Bash completion 2025-04-22 08:26:12 -07:00