aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-11 15:59:37 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-11 16:31:29 +0000
commit9c18878a05c61ad405f27e69e9a61b8287c76932 (patch)
treea44e1371d10a337461230cd4c962a88c92f82410 /test
parent8aea564f281a3319d56cb392c05652e1348d682a (diff)
downloadgit-deps-9c18878a05c61ad405f27e69e9a61b8287c76932.tar.gz
allow interactive stepped construction of test repo
Diffstat (limited to 'test')
-rwxr-xr-xtest/create-repo.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/create-repo.sh b/test/create-repo.sh
index 589e1a2..0c3813c 100755
--- a/test/create-repo.sh
+++ b/test/create-repo.sh
@@ -2,6 +2,12 @@
here=$(dirname $0)
+tag () {
+ git tag "$@"
+ echo -n "Hit Enter to continue ..."
+ read
+}
+
test_repo=$here/test-repo
rm -rf $test_repo
@@ -28,32 +34,32 @@ EOF
git add one
git commit -m 'one'
-git tag one
+tag one
for f in two three; do
cp one $f
git add $f
git commit -m "$f"
- git tag "$f"
+ tag "$f"
done
# Now start making changes
sed -i 's/three/three a/' one
git commit -am 'one: change three to three a'
-git tag one-three-a # depends on one
+tag one-three-a # depends on one
sed -i 's/three/three a/' two
git commit -am 'two: change three to three a'
-git tag two-three-a # depends on two
+tag two-three-a # depends on two
# Change non-overlapping part of previously changed file
sed -i 's/eight/eight a/' one
git commit -am 'one: change eight to eight a'
-git tag one-eight-a # depends on one
+tag one-eight-a # depends on one
# Change previously changed line
sed -i 's/three a/three b/' one
git commit -am 'one: change three a to three b'
-git tag one-three-b # depends on one-three-a
+tag one-three-b # depends on one-three-a