]> git.ipfire.org Git - thirdparty/git.git/commit
completion: refactor existence checks for pseudorefs
authorStan Hu <stanhu@gmail.com>
Tue, 19 Dec 2023 22:14:17 +0000 (14:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Dec 2023 23:11:56 +0000 (15:11 -0800)
commit666270a2df49132c683f53b5efde240dd9bf5c5e
treee5f88d2faad05289ed29e346023b39d62af502ec
parent564d0252ca632e0264ed670534a51d18a689ef5d
completion: refactor existence checks for pseudorefs

In preparation for the reftable backend, this commit introduces a
'__git_pseudoref_exists' function that continues to use 'test -f' to
determine whether a given pseudoref exists in the local filesystem.

Signed-off-by: Stan Hu <stanhu@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash