mirror of
https://github.com/git/git.git
synced 2026-01-12 13:53:11 +09:00
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:
commit
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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user