mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Merge b596df106d into 9b1c21a409
This commit is contained in:
commit
2b4d5c80e7
1 changed files with 12 additions and 1 deletions
|
|
@ -410,6 +410,13 @@ __git_refs_remotes ()
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# return only local branches
|
||||||
|
__git_refs_local ()
|
||||||
|
{
|
||||||
|
git for-each-ref --format='%(refname:short)' refs/heads/
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
__git_remotes ()
|
__git_remotes ()
|
||||||
{
|
{
|
||||||
local d="$(__gitdir)"
|
local d="$(__gitdir)"
|
||||||
|
|
@ -1033,7 +1040,11 @@ _git_checkout ()
|
||||||
if [ -n "$(__git_find_on_cmdline "$flags")" ]; then
|
if [ -n "$(__git_find_on_cmdline "$flags")" ]; then
|
||||||
track=''
|
track=''
|
||||||
fi
|
fi
|
||||||
__gitcomp_nl "$(__git_refs '' $track)"
|
if [ -z ${GITFAST_CHECKOUT_LOCAL_ONLY+x} ]; then
|
||||||
|
__gitcomp_nl "$(__git_refs '' $track)"
|
||||||
|
else
|
||||||
|
__gitcomp_nl "$(__git_refs_local)"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue