aboutsummaryrefslogtreecommitdiff
path: root/commit-updates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-16 18:57:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-16 18:57:16 -0300
commitf353440268647fc4d600ac71f0706cc9e54c2168 (patch)
treea198d27aaa08698dbee369866a4a4221393adaa2 /commit-updates
parent7d889c0767d44d070628ad708ed640f1f8d9a7ce (diff)
downloadutils-git-f353440268647fc4d600ac71f0706cc9e54c2168.tar.gz
utils-git-f353440268647fc4d600ac71f0706cc9e54c2168.tar.bz2
Adds hit, the git interceptor
Diffstat (limited to 'commit-updates')
-rwxr-xr-xcommit-updates5
1 files changed, 4 insertions, 1 deletions
diff --git a/commit-updates b/commit-updates
index 93faf12..2a71c1d 100755
--- a/commit-updates
+++ b/commit-updates
@@ -6,6 +6,9 @@
# Parameters
PROJECT="$1"
+# Git application we use
+GIT="hit"
+
# Check if param is a project
if [ ! -z "$PROJECT" ] && [ -z "$2" ] && ( cd $PROJECT &> /dev/null ); then
if ! git status &> /dev/null; then
@@ -21,7 +24,7 @@ fi
ARGS="$*"
# Simply update commit
-if git status &> /dev/null; then
+if $GIT status &> /dev/null; then
if [ ! -z "$ARGS" ]; then
commit "Updates $ARGS"
else