X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-sh-setup.sh;h=dfcb8078f508d6cc26d312d61b64e0185e90b74b;hb=56eb8b43ebdb38683ff5ce395d7b5e080d402b5b;hp=99cceeb858dcd2c83a040b0dd3117744e177e316;hpb=376f39fbea0dfb31402abda878a7b0018f6a6161;p=git.git diff --git a/git-sh-setup.sh b/git-sh-setup.sh index 99cceeb85..dfcb8078f 100755 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -107,6 +107,14 @@ git_editor() { eval "$GIT_EDITOR" '"$@"' } +sane_grep () { + GREP_OPTIONS= LC_ALL=C grep "$@" +} + +sane_egrep () { + GREP_OPTIONS= LC_ALL=C egrep "$@" +} + is_bare_repository () { git rev-parse --is-bare-repository }