mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +02:00
45288: _git: Complete bisect/new as well as bisect/bad.
Also, complete the bisect/old-$commithash ref names.
This commit is contained in:
parent
8192043460
commit
22c0fe02a5
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-01-15 Daniel Shahaf <danielsh@apache.org>
|
||||
|
||||
* 45288: Completion/Unix/Command/_git: Complete bisect/new as
|
||||
well as bisect/bad.
|
||||
|
||||
2020-01-06 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 45246: configure.ac: Make --disable-multibyte warn, since
|
||||
|
|
|
@ -6702,14 +6702,12 @@ __git_heads_local () {
|
|||
local f gitdir
|
||||
declare -a heads
|
||||
|
||||
heads=(${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname:short)"' refs/heads 2>/dev/null)"})
|
||||
heads=(${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname:short)"' refs/heads refs/bisect refs/stash 2>/dev/null)"})
|
||||
gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null)
|
||||
if __git_command_successful $pipestatus; then
|
||||
for f in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
|
||||
[[ -f $gitdir/$f ]] && heads+=$f
|
||||
done
|
||||
[[ -f $gitdir/refs/stash ]] && heads+=stash
|
||||
[[ -f $gitdir/refs/bisect/bad ]] && heads+=bisect/bad
|
||||
fi
|
||||
|
||||
__git_describe_commit heads heads-local "local head" "$@"
|
||||
|
|
Loading…
Reference in a new issue