move git shell function to brew.sh

git is also used in analytics.sh
This commit is contained in:
Xu Cheng 2016-05-13 14:40:14 +08:00
parent 750bb24a78
commit 6eb2287221
2 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,6 @@
source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh" source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
git() {
"$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
}
git_init_if_necessary() { git_init_if_necessary() {
if [[ -n "$HOMEBREW_OSX" ]] if [[ -n "$HOMEBREW_OSX" ]]
then then

View File

@ -28,6 +28,10 @@ brew() {
"$HOMEBREW_BREW_FILE" "$@" "$HOMEBREW_BREW_FILE" "$@"
} }
git() {
"$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
}
# Force UTF-8 to avoid encoding issues for users with broken locale settings. # Force UTF-8 to avoid encoding issues for users with broken locale settings.
if [[ "$(locale charmap 2> /dev/null)" != "UTF-8" ]] if [[ "$(locale charmap 2> /dev/null)" != "UTF-8" ]]
then then