diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-09-16 18:57:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-09-16 18:57:16 -0300 |
commit | f353440268647fc4d600ac71f0706cc9e54c2168 (patch) | |
tree | a198d27aaa08698dbee369866a4a4221393adaa2 /commit-updates | |
parent | 7d889c0767d44d070628ad708ed640f1f8d9a7ce (diff) | |
download | utils-git-f353440268647fc4d600ac71f0706cc9e54c2168.tar.gz utils-git-f353440268647fc4d600ac71f0706cc9e54c2168.tar.bz2 |
Adds hit, the git interceptor
Diffstat (limited to 'commit-updates')
-rwxr-xr-x | commit-updates | 5 |
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 |