move git shell function to brew.sh
git is also used in analytics.sh
This commit is contained in:
parent
750bb24a78
commit
6eb2287221
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user