Pass the path using the --prefix option instead of on the command line.

I like this better.  It's more like git-read-tree and some other commands.
This commit is contained in:
Avery Pennarun
2009-04-24 22:57:14 -04:00
parent 96db2c0448
commit 9a8821ff33
2 changed files with 19 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ git branch sub2 FETCH_HEAD
git merge -s subtree FETCH_HEAD
git branch pre-split
split1=$(git subtree split --onto FETCH_HEAD subdir --rejoin)
split1=$(git subtree split --prefix subdir --onto FETCH_HEAD --rejoin)
echo "split1={$split1}"
git branch split1 "$split1"
@@ -77,14 +77,14 @@ git add sub6
git commit -m 'sub6'
cd ../mainline
split2=$(git subtree split subdir --rejoin)
split2=$(git subtree split --prefix subdir --rejoin)
git branch split2 "$split2"
touch subdir/main-sub7
git add subdir/main-sub7
git commit -m 'main-sub7'
split3=$(git subtree split subdir --rejoin)
split3=$(git subtree split --prefix subdir --rejoin)
git branch split3 "$split3"
cd ../subproj