Skip to content

Commit

Permalink
Add work-dir option
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwinchester committed Feb 19, 2016
1 parent 5022114 commit 534db16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git-subsplit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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=
Expand All @@ -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 ;;
Expand Down

0 comments on commit 534db16

Please sign in to comment.