aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2018-05-17 14:12:23 +0100
committerAdam Spiers <git@adamspiers.org>2018-05-17 14:12:23 +0100
commitf0085ea2c477f5a09197a92e38bad9b4aaa2ac50 (patch)
tree483929e8e4d94a37869fee8c4dbe93ca10b7661d /tests
parent2f0a8a258ef8d4b2e8c787a565c0d9e2ac24697c (diff)
downloadgit-deps-f0085ea2c477f5a09197a92e38bad9b4aaa2ac50.tar.gz
create-repo.sh: add a feature branch
Diffstat (limited to 'tests')
-rwxr-xr-xtests/create-repo.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/create-repo.sh b/tests/create-repo.sh
index 9c84150..0159b13 100755
--- a/tests/create-repo.sh
+++ b/tests/create-repo.sh
@@ -54,6 +54,15 @@ main () {
edit file-a three foo # depends on file-a tag
edit file-b three bar # depends on file-b tag
+ # Start a feature branch
+ git checkout -b feature
+ new_file file-c
+ edit file-c four foo
+ edit file-c ten qux
+
+ # Switch back to master
+ git checkout master
+
# Change non-overlapping part of previously changed file
edit file-a eight foo # depends on file-a tag