Permalink
Browse files

Making the scripts work for LC_MESSAGES!=C.

  • Loading branch information...
Manuel Koller
Manuel Koller committed Sep 19, 2012
1 parent 5f95c71 commit 9dfa319180c2b74b6ab9563d2b325e8ebfba8eda
Showing with 140 additions and 0 deletions.
  1. +7 −0 git-attach-head
  2. +8 −0 git-bfetch
  3. +7 −0 git-check-branch
  4. +7 −0 git-check-clean
  5. +7 −0 git-check-non-tracking
  6. +7 −0 git-check-unpushed
  7. +7 −0 git-converge-submodules
  8. +6 −0 git-cpush
  9. +7 −0 git-fix-submodules
  10. +7 −0 git-mv-submodule
  11. +7 −0 git-rcheckout
  12. +7 −0 git-rclone
  13. +7 −0 git-rcommit
  14. +7 −0 git-rdiff
  15. +7 −0 git-rfetch
  16. +7 −0 git-rm-orphaned-submodule-dirs
  17. +7 −0 git-rm-submodule
  18. +7 −0 git-rpull
  19. +7 −0 git-rpush
  20. +7 −0 git-rstatus
View
@@ -29,6 +29,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## TODO: do some error checking?
## stop if HEAD is a ref already
View
@@ -31,6 +31,14 @@ EOF
fi
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
+
## get current branch
branch=`git name-rev --name-only HEAD`
View
@@ -39,6 +39,13 @@ EOF
exit 0
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
tmp=`git branch --no-color -vv 2> /dev/null`
while read line; do
if [[ "${line:0:1}" != "*" ]]; then
View
@@ -68,6 +68,13 @@ else
done
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
if [[ "$ignoresub" ]]; then
status=`git status --porcelain --ignore-submodules=$ignoresub`
else
View
@@ -32,6 +32,13 @@ while getopts ":p" opt; do
esac
done
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## cycle all branches
tmp=`git branch -vv --no-color --no-merged 2> /dev/null`
if [[ "$tmp" ]]; then
View
@@ -32,6 +32,13 @@ while getopts ":p" opt; do
esac
done
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## cycle all branches
tmp=`git branch --no-color -vv 2> /dev/null`
while read line; do
View
@@ -50,6 +50,13 @@ while getopts ":fq" opt; do
esac
done
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## ensure we are in the toplevel directory
cdup=$(git rev-parse --show-toplevel) &&
cd "$cdup" || {
View
@@ -19,6 +19,12 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
## push submodules first
View
@@ -19,6 +19,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## ensure we are in the toplevel directory
cdup=$(git rev-parse --show-toplevel) &&
cd "$cdup" || {
View
@@ -31,6 +31,13 @@ else
to=$2
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## check if this is a valid submodule
if [[ ! "$from" || $(git ls-files --error-unmatch --stage -- "$from" | grep -E '^160000') == "" ]]; then
View
@@ -21,6 +21,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## check for modified content and uncommitted changes
git check-clean || exit 1
View
@@ -25,6 +25,13 @@ else
name=${name%.git}
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
echo "Cloning into $name..."
git clone --recursive -q "$1" "$name" > /dev/null
echo "done."
View
@@ -24,6 +24,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
args=""
recursive=1
a=0
View
@@ -16,6 +16,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## ensure we are in the toplevel directory
cdup=$(git rev-parse --show-toplevel) &&
View
@@ -20,6 +20,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## run fetch
tmp=`git fetch --recurse-submodules=yes "$@" 2>&1`
## and process output
@@ -18,6 +18,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## ensure we are in the toplevel directory
cdup=$(git rev-parse --show-toplevel) &&
cd "$cdup" || {
View
@@ -27,6 +27,13 @@ else
dir=$1
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## check if this is a valid submodule
if [[ ! "$dir" || $(git ls-files --error-unmatch --stage -- "$dir" | grep -E '^160000') == "" ]]; then
echo >&2 "Error: \"$dir\" is not a submodule."
View
@@ -24,6 +24,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## check for modified content and uncommitted changes
git check-clean --ignore-submodules=untracked --unstaged --uncommitted --unmerged || exit 1
## check for untracked files
View
@@ -20,6 +20,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
## check for modified content and uncommitted changes
git check-clean --ignore-submodules=untracked --unstaged --uncommitted --unmerged || exit 1
## check for untracked files
View
@@ -14,6 +14,13 @@ EOF
exit 0;
fi
+## from the git mailinglist:
+function git
+{
+ LC_MESSAGES=C command git "$@"
+}
+export git
+
. "$(git --exec-path)/git-sh-setup"
cd_to_toplevel

0 comments on commit 9dfa319

Please sign in to comment.