From 491e97429ea8dd9b6a170ce53a15a05b861d4d76 Mon Sep 17 00:00:00 2001 From: ryanwinchester Date: Fri, 19 Feb 2016 13:04:23 -0800 Subject: [PATCH] Add work-dir option --- git-subsplit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-subsplit.sh b/git-subsplit.sh index 5c84c3b..602ac27 100755 --- a/git-subsplit.sh +++ b/git-subsplit.sh @@ -17,7 +17,7 @@ h,help show the help q quiet debug show plenty of debug output n,dry-run do everything except actually send the updates -work-dir directory that contains the subsplit working directory +work-dir= directory that contains the subsplit working directory options for 'publish' heads= only publish for listed heads instead of all heads @@ -39,7 +39,7 @@ PATH=$PATH:$(git --exec-path) if [ "$(hash git-subtree &>/dev/null && echo OK)" = "" ] then - die "Git subplit needs git subtree; install git subtree or upgrade git to >=1.7.11" + die "Git subsplit needs git subtree; install git subtree or upgrade git to >=1.7.11" fi ANNOTATE= @@ -65,6 +65,7 @@ subsplit_main() -q) QUIET=1 ;; --debug) VERBOSE=1 ;; --heads) HEADS="$1"; shift ;; + --work-dir) WORK_DIR="$1"; shift ;; --no-heads) NO_HEADS=1 ;; --tags) TAGS="$1"; shift ;; --no-tags) NO_TAGS=1 ;;