diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-04 21:57:58 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-10 00:23:01 +1100 |
commit | 778ca8e6f9f012de401fef215270670d1e028545 (patch) | |
tree | 222918d4d4626b32f2163ad4e587d9528f1d8af5 /test | |
parent | b64c6a3ac723b4804849bcbbd70f144640bfddd9 (diff) |
better interface
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/manyCommits.sh | 17 | ||||
-rw-r--r-- | test/fixtures/newFile.sh | 15 | ||||
-rw-r--r-- | test/fixtures/updatedFile.sh (renamed from test/fixtures/1.sh) | 0 | ||||
-rw-r--r-- | test/integration/commit/snapshot.txt | 54 |
4 files changed, 81 insertions, 5 deletions
diff --git a/test/fixtures/manyCommits.sh b/test/fixtures/manyCommits.sh new file mode 100644 index 000000000..8eec5ae57 --- /dev/null +++ b/test/fixtures/manyCommits.sh @@ -0,0 +1,17 @@ +#!/bin/sh +git init +echo test1 > myfile1 +git add . +git commit -am "myfile1" +echo test2 > myfile2 +git add . +git commit -am "myfile2" +echo test3 > myfile3 +git add . +git commit -am "myfile3" +echo test4 > myfile4 +git add . +git commit -am "myfile4" +echo test5 > myfile5 +git add . +git commit -am "myfile5" diff --git a/test/fixtures/newFile.sh b/test/fixtures/newFile.sh new file mode 100644 index 000000000..f8592c33f --- /dev/null +++ b/test/fixtures/newFile.sh @@ -0,0 +1,15 @@ +#!/bin/sh +git init +echo test1 > myfile1 +git add . +git commit -am "myfile1" +echo test2 > myfile2 +git add . +git commit -am "myfile2" +echo test3 > myfile3 +git add . +git commit -am "myfile3" +echo test4 > myfile4 +git add . +git commit -am "myfile4" +echo test5 > myfile5 diff --git a/test/fixtures/1.sh b/test/fixtures/updatedFile.sh index 2c42d6282..2c42d6282 100644 --- a/test/fixtures/1.sh +++ b/test/fixtures/updatedFile.sh diff --git a/test/integration/commit/snapshot.txt b/test/integration/commit/snapshot.txt index 0c50ae828..31c1e5553 100644 --- a/test/integration/commit/snapshot.txt +++ b/test/integration/commit/snapshot.txt @@ -1,13 +1,57 @@ On branch master nothing to commit, working tree clean -test +test1 +test2 +test3 +test4 +test5 my commit -diff --git a/myfile b/myfile +diff --git a/myfile5 b/myfile5 new file mode 100644 -index 0000000..9daeafb +index 0000000..4f346f1 --- /dev/null -+++ b/myfile ++++ b/myfile5 @@ -0,0 +1 @@ -+test ++test5 +myfile4 + + +diff --git a/myfile4 b/myfile4 +new file mode 100644 +index 0000000..d234c5e +--- /dev/null ++++ b/myfile4 +@@ -0,0 +1 @@ ++test4 +myfile3 + + +diff --git a/myfile3 b/myfile3 +new file mode 100644 +index 0000000..df6b0d2 +--- /dev/null ++++ b/myfile3 +@@ -0,0 +1 @@ ++test3 +myfile2 + + +diff --git a/myfile2 b/myfile2 +new file mode 100644 +index 0000000..180cf83 +--- /dev/null ++++ b/myfile2 +@@ -0,0 +1 @@ ++test2 +myfile1 + + +diff --git a/myfile1 b/myfile1 +new file mode 100644 +index 0000000..a5bce3f +--- /dev/null ++++ b/myfile1 +@@ -0,0 +1 @@ ++test1 |