зеркало из https://github.com/microsoft/git.git
Merge branch 'dc/complete-restore'
The command line completion support (in contrib/) learns to give modified paths to the "git restore" command. * dc/complete-restore: completion: tab completion of filenames for 'git restore'
This commit is contained in:
Коммит
1f390f2ad5
|
@ -2890,6 +2890,10 @@ _git_restore ()
|
|||
--*)
|
||||
__gitcomp_builtin restore
|
||||
;;
|
||||
*)
|
||||
if __git rev-parse --verify --quiet HEAD >/dev/null; then
|
||||
__git_complete_index_file "--modified"
|
||||
fi
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче