Skip to content

Commit 534db16

Browse files
Add work-dir option
1 parent 5022114 commit 534db16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git-subsplit.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ h,help show the help
1717
q quiet
1818
debug show plenty of debug output
1919
n,dry-run do everything except actually send the updates
20-
work-dir directory that contains the subsplit working directory
20+
work-dir= directory that contains the subsplit working directory
2121
2222
options for 'publish'
2323
heads= only publish for listed heads instead of all heads
@@ -39,7 +39,7 @@ PATH=$PATH:$(git --exec-path)
3939

4040
if [ "$(hash git-subtree &>/dev/null && echo OK)" = "" ]
4141
then
42-
die "Git subplit needs git subtree; install git subtree or upgrade git to >=1.7.11"
42+
die "Git subsplit needs git subtree; install git subtree or upgrade git to >=1.7.11"
4343
fi
4444

4545
ANNOTATE=
@@ -65,6 +65,7 @@ subsplit_main()
6565
-q) QUIET=1 ;;
6666
--debug) VERBOSE=1 ;;
6767
--heads) HEADS="$1"; shift ;;
68+
--work-dir) WORK_DIR="$1"; shift ;;
6869
--no-heads) NO_HEADS=1 ;;
6970
--tags) TAGS="$1"; shift ;;
7071
--no-tags) NO_TAGS=1 ;;

0 commit comments

Comments
 (0)