summaryrefslogtreecommitdiff
path: root/pbs-plumb-shlib
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-03-19 17:19:42 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-03-19 17:19:42 -0400
commitbb0b8efa06e504a5b82dbc0fb5f22721701dcb42 (patch)
treebf66edf6e1b91a5008f08b2b3c202a54ce2aa3e3 /pbs-plumb-shlib
parent93cb6dddc415e481e52bdd5f0b379b7ea811dcf2 (diff)
split pbs-package-commit into pbs-package-{post,}commit, and fix it
Diffstat (limited to 'pbs-plumb-shlib')
-rw-r--r--pbs-plumb-shlib4
1 files changed, 4 insertions, 0 deletions
diff --git a/pbs-plumb-shlib b/pbs-plumb-shlib
index c51ddd0..ccbdffb 100644
--- a/pbs-plumb-shlib
+++ b/pbs-plumb-shlib
@@ -16,6 +16,10 @@ gitroot() {
git rev-parse --show-toplevel
}
+gitbranch() {
+ git rev-parse --abbrev-ref HEAD
+}
+
have_file() {
local file=$1
if in_git; then