summaryrefslogtreecommitdiff
path: root/lib/git
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-09-25 23:37:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-09-25 23:37:23 -0300
commit3346311096bee29b81190ceb377ef5648aee1380 (patch)
tree84f99fb82853416b2e2cd1c3b0f09ae86eff1d8d /lib/git
parentc36794e899731be16f1045a9ae19878813fd9896 (diff)
downloadhydra-3346311096bee29b81190ceb377ef5648aee1380.tar.gz
hydra-3346311096bee29b81190ceb377ef5648aee1380.tar.bz2
New/renamed actions
Diffstat (limited to 'lib/git')
-rw-r--r--lib/git33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/git b/lib/git
deleted file mode 100644
index 6e7f05a..0000000
--- a/lib/git
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# Add a pattern into gitignore
-function hydra_git_ignore {
- if [ ! -z "$BASEDIR/.gitignore" ]; then
- echo $1 > $BASEDIR/.gitignore
- hydra_exec git $BASEDIR add .gitignore
- else
- if ! grep -q -e "^$1$" $BASEDIR/.gitignore; then
- echo $1 >> $BASEDIR/.gitignore
- fi
- fi
-}
-
-# Check if a folder is inside a git repository
-function hydra_is_git {
- if [ -z "$1" ]; then
- false
- elif [ ! -d "$1" ]; then
- false
- elif [ -d "$1/.git" ]; then
- true
- else
- cwd="`pwd`"
- cd $1 && git="`git status &> /dev/null`" && cd $cwd
-
- if [ "$git" != "128" ]; then
- true
- else
- false
- fi
- fi
-}