summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-08-12 09:25:51 -0700
committerJunio C Hamano <gitster@pobox.com>2026-08-12 10:14:42 -0700
commit354d1bf3a094c1ac9ff6c1b4931a0f7e563aef93 (patch)
tree552e9050bb9a55a5e055e871c509023a3ac75dda /contrib/persistent-https
parent4b1b7a4e95af51c87e023fd96d9da0d4719e33bd (diff)
completion: 'git diff' completes untracked paths as a last resort
We taught 'git diff' to first try to complete revisions (unless '--' is present on the command line) and, failing that, to complete tracked paths. If this yields nothing, it lets the Bash default, which offers paths in $PWD, kick in. Teach it to complete untracked paths before giving up and letting the Bash default kick in. With this change, $ git -C another-directory diff un<TAB> finds the 'untracked' file in another-directory and offers it as a completion candidate. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions