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:
Junio C Hamano 2022-03-23 14:09:31 -07:00
commit 1f390f2ad5

View file

@ -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
}