mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 16:40:29 +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
|
|
@ -1,5 +1,8 @@
|
|||
2015-08-19 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 36247: Completion/Unix/Command/_git: __git_objects: Complete
|
||||
HEAD:./foo correctly in worktree subdir
|
||||
|
||||
* 36237: Completion/Unix/Command/_git: __git_objects: Complete
|
||||
HEAD:foo correctly in worktree subdir
|
||||
|
||||
|
|
|
|||
|
|
@ -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