Skip to content

Commit

Permalink
Merge branch 'dc/complete-restore' into jch
Browse files Browse the repository at this point in the history
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'
  • Loading branch information
gitster committed Mar 21, 2022
2 parents c545664 + 841fd28 commit c25eae8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/completion/git-completion.bash
Expand Up @@ -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
}

Expand Down

0 comments on commit c25eae8

Please sign in to comment.