mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 04:30:27 +01:00
36247: __git_objects: Complete HEAD:./foo correctly in worktree subdir
This commit is contained in:
parent
663fa4092f
commit
a69994ede1
2 changed files with 8 additions and 1 deletions
|
|
@ -5740,7 +5740,11 @@ __git_tree_ishs () {
|
|||
__git_objects () {
|
||||
compset -P '*:'
|
||||
if [[ -n $IPREFIX ]]; then
|
||||
__git_tree_files --root-relative "$PREFIX" "${IPREFIX%:}"
|
||||
if compset -P ./ ; then
|
||||
__git_tree_files "$PREFIX" "${IPREFIX%:./}"
|
||||
else
|
||||
__git_tree_files --root-relative "$PREFIX" "${IPREFIX%:}"
|
||||
fi
|
||||
else
|
||||
_alternative \
|
||||
'revisions::__git_revisions' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue