mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.02k stars 8.74k forks source link

Replace deprecated _git wrapper function #942

Closed huyby closed 2 years ago

huyby commented 3 years ago

Currently when updating git on your machine you'll get version 2.32 which doesn't have the _git wrapper function anymore.

Replacing it with the __git_wrap__git_main that was proxied through _git. As the git bash completion script mentions, it's possible to use "__git_complete" to make use of completion.

See: https://github.com/git/git/commit/441ecdab37fefdacf32575a60aa523b2367c46f7 https://github.com/git/git/commit/5a067ba9d04eebc92ad77f101b785219238f4f1e (thanks @lucthev) and https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L39