diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/create-repo.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/create-repo.sh b/tests/create-repo.sh index f837b5d..31e957e 100755 --- a/tests/create-repo.sh +++ b/tests/create-repo.sh @@ -70,7 +70,22 @@ feature () { edit file-c four foo edit file-c ten qux - # Switch back to master + git checkout master +} + +# For demonstrating a backporting use-case +port () { + cd $test_repo + + # Add some more commits to master + edit file-b four qux + edit file-a two wibble + edit file-a nine wobble + + # Start a stable branch + git checkout -b stable file-a-three-foo + edit file-a three blah + git checkout master } @@ -78,6 +93,10 @@ case "$1" in feature) feature ;; + port) + main + port + ;; *) main ;; |