aboutsummaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
Diffstat (limited to 'wiki')
-rwxr-xr-xwiki14
1 files changed, 7 insertions, 7 deletions
diff --git a/wiki b/wiki
index c89228d..1f7dcc1 100755
--- a/wiki
+++ b/wiki
@@ -8,7 +8,7 @@ WIKI_LIST=$(ls $WIKIROOT | grep -v html)
wiki_list=""
-alias git='git -c color.status=always'
+GIT='git -c color.status=always -c color.ui=always'
#
# Adds all files to git, and commits with either the arguments as
@@ -21,8 +21,8 @@ function commit {
else
msg="$*"
fi
- git add -A
- git commit -m "$msg"
+ $GIT add -A
+ $GIT commit -m "$msg"
}
#
@@ -30,10 +30,10 @@ function commit {
#
function ammend {
if [ $# -eq 1 ]; then
- git commit --amend
+ $GIT commit --amend
else
msg="$*"
- git commit --amend -m "$msg"
+ $GIT commit --amend -m "$msg"
fi
}
@@ -58,13 +58,13 @@ function wiki_do {
;;
g|go)
commit $@
- git push
+ $GIT push
;;
echo)
echo "-- $wiki --"
;;
*)
- eval "git -c color.status=always $@"
+ $GIT "$@"
;;
esac
}