diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-23 18:47:51 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 1a7fe2835c8eadd1303770fafe665f98aca47114 (patch) | |
tree | e8db8985ac472d0a608e63ccb52dd6536e59766b /test | |
parent | bff5351ab3203b8bcd25e69bd7e925e0e1deb674 (diff) |
integration test for multiline commit message
Diffstat (limited to 'test')
33 files changed, 71 insertions, 0 deletions
diff --git a/test/integration/commitMultiline/expected/.git_keep/COMMIT_EDITMSG b/test/integration/commitMultiline/expected/.git_keep/COMMIT_EDITMSG new file mode 100644 index 000000000..bf8858b06 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/COMMIT_EDITMSG @@ -0,0 +1,3 @@ +first line + +third line diff --git a/test/integration/commitMultiline/expected/.git_keep/FETCH_HEAD b/test/integration/commitMultiline/expected/.git_keep/FETCH_HEAD new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/FETCH_HEAD diff --git a/test/integration/commitMultiline/expected/.git_keep/HEAD b/test/integration/commitMultiline/expected/.git_keep/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/commitMultiline/expected/.git_keep/config b/test/integration/commitMultiline/expected/.git_keep/config new file mode 100644 index 000000000..8ae104545 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/config @@ -0,0 +1,10 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + ignorecase = true + precomposeunicode = true +[user] + email = CI@example.com + name = CI diff --git a/test/integration/commitMultiline/expected/.git_keep/description b/test/integration/commitMultiline/expected/.git_keep/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/commitMultiline/expected/.git_keep/index b/test/integration/commitMultiline/expected/.git_keep/index Binary files differnew file mode 100644 index 000000000..a08b4116e --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/index diff --git a/test/integration/commitMultiline/expected/.git_keep/info/exclude b/test/integration/commitMultiline/expected/.git_keep/info/exclude new file mode 100644 index 000000000..8e9f2071f --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/info/exclude @@ -0,0 +1,7 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ +.DS_Store diff --git a/test/integration/commitMultiline/expected/.git_keep/logs/HEAD b/test/integration/commitMultiline/expected/.git_keep/logs/HEAD new file mode 100644 index 000000000..88b99d1ab --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/logs/HEAD @@ -0,0 +1,5 @@ +0000000000000000000000000000000000000000 176069f0ded1db43eecb3b629a6077dba6c68295 CI <CI@example.com> 1645602422 +1100 commit (initial): myfile1 +176069f0ded1db43eecb3b629a6077dba6c68295 9f1b5440546da24daad7014ccf3e1f4d81f9414b CI <CI@example.com> 1645602422 +1100 commit: myfile2 +9f1b5440546da24daad7014ccf3e1f4d81f9414b 3933a268c502712421b7bfa04888319d6f108574 CI <CI@example.com> 1645602422 +1100 commit: myfile3 +3933a268c502712421b7bfa04888319d6f108574 37128a3020849daa0847462d14c384cc74c42ae0 CI <CI@example.com> 1645602422 +1100 commit: myfile4 +37128a3020849daa0847462d14c384cc74c42ae0 574013716a7f007a27b647b90cdbc78d006d792b CI <CI@example.com> 1645602427 +1100 commit: first line diff --git a/test/integration/commitMultiline/expected/.git_keep/logs/refs/heads/master b/test/integration/commitMultiline/expected/.git_keep/logs/refs/heads/master new file mode 100644 index 000000000..88b99d1ab --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/logs/refs/heads/master @@ -0,0 +1,5 @@ +0000000000000000000000000000000000000000 176069f0ded1db43eecb3b629a6077dba6c68295 CI <CI@example.com> 1645602422 +1100 commit (initial): myfile1 +176069f0ded1db43eecb3b629a6077dba6c68295 9f1b5440546da24daad7014ccf3e1f4d81f9414b CI <CI@example.com> 1645602422 +1100 commit: myfile2 +9f1b5440546da24daad7014ccf3e1f4d81f9414b 3933a268c502712421b7bfa04888319d6f108574 CI <CI@example.com> 1645602422 +1100 commit: myfile3 +3933a268c502712421b7bfa04888319d6f108574 37128a3020849daa0847462d14c384cc74c42ae0 CI <CI@example.com> 1645602422 +1100 commit: myfile4 +37128a3020849daa0847462d14c384cc74c42ae0 574013716a7f007a27b647b90cdbc78d006d792b CI <CI@example.com> 1645602427 +1100 commit: first line diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 b/test/integration/commitMultiline/expected/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 Binary files differnew file mode 100644 index 000000000..7f2ebf4ee --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/17/6069f0ded1db43eecb3b629a6077dba6c68295 b/test/integration/commitMultiline/expected/.git_keep/objects/17/6069f0ded1db43eecb3b629a6077dba6c68295 new file mode 100644 index 000000000..a7d01df20 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/17/6069f0ded1db43eecb3b629a6077dba6c68295 @@ -0,0 +1,2 @@ +xA +0@ѮsL:))1P!")#tyS5[˥*`hJAr <=:⧽qzm[
@gJzNɝ}˲*.,
\ No newline at end of file diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 b/test/integration/commitMultiline/expected/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 Binary files differnew file mode 100644 index 000000000..f74bf2335 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce b/test/integration/commitMultiline/expected/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce Binary files differnew file mode 100644 index 000000000..0a734f981 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 b/test/integration/commitMultiline/expected/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 Binary files differnew file mode 100644 index 000000000..31ae3f5ba --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/30/a1ca3481fdec3245b02aeacfb72ddfe2a433be b/test/integration/commitMultiline/expected/.git_keep/objects/30/a1ca3481fdec3245b02aeacfb72ddfe2a433be Binary files differnew file mode 100644 index 000000000..aca754d63 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/30/a1ca3481fdec3245b02aeacfb72ddfe2a433be diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/37/128a3020849daa0847462d14c384cc74c42ae0 b/test/integration/commitMultiline/expected/.git_keep/objects/37/128a3020849daa0847462d14c384cc74c42ae0 Binary files differnew file mode 100644 index 000000000..b4dfbe20c --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/37/128a3020849daa0847462d14c384cc74c42ae0 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/39/33a268c502712421b7bfa04888319d6f108574 b/test/integration/commitMultiline/expected/.git_keep/objects/39/33a268c502712421b7bfa04888319d6f108574 Binary files differnew file mode 100644 index 000000000..4195b00e1 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/39/33a268c502712421b7bfa04888319d6f108574 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/4f/346f1ad5ba2917da2109e2eaa2f2dfbb86f10f b/test/integration/commitMultiline/expected/.git_keep/objects/4f/346f1ad5ba2917da2109e2eaa2f2dfbb86f10f Binary files differnew file mode 100644 index 000000000..953241815 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/4f/346f1ad5ba2917da2109e2eaa2f2dfbb86f10f diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/57/4013716a7f007a27b647b90cdbc78d006d792b b/test/integration/commitMultiline/expected/.git_keep/objects/57/4013716a7f007a27b647b90cdbc78d006d792b new file mode 100644 index 000000000..d675c1840 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/57/4013716a7f007a27b647b90cdbc78d006d792b @@ -0,0 +1,2 @@ +xK +0D)/YVbJ)dc(B7t5c뚫E.Z=E7%Ԍ,0IQEj}pB.1H|$@Buދ{~x=ɾ>ki :`NzL]9_!?
\ No newline at end of file diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/9f/1b5440546da24daad7014ccf3e1f4d81f9414b b/test/integration/commitMultiline/expected/.git_keep/objects/9f/1b5440546da24daad7014ccf3e1f4d81f9414b Binary files differnew file mode 100644 index 000000000..9ea933b39 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/9f/1b5440546da24daad7014ccf3e1f4d81f9414b diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 b/test/integration/commitMultiline/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 Binary files differnew file mode 100644 index 000000000..285df3e5f --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 b/test/integration/commitMultiline/expected/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 Binary files differnew file mode 100644 index 000000000..96d2e71a6 --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 b/test/integration/commitMultiline/expected/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 Binary files differnew file mode 100644 index 000000000..d39fa7d2f --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 diff --git a/test/integration/commitMultiline/expected/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b b/test/integration/commitMultiline/expected/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b Binary files differnew file mode 100644 index 000000000..9b771fc2f --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b diff --git a/test/integration/commitMultiline/expected/.git_keep/refs/heads/master b/test/integration/commitMultiline/expected/.git_keep/refs/heads/master new file mode 100644 index 000000000..c44ada3dd --- /dev/null +++ b/test/integration/commitMultiline/expected/.git_keep/refs/heads/master @@ -0,0 +1 @@ +574013716a7f007a27b647b90cdbc78d006d792b diff --git a/test/integration/commitMultiline/expected/myfile1 b/test/integration/commitMultiline/expected/myfile1 new file mode 100644 index 000000000..a5bce3fd2 --- /dev/null +++ b/test/integration/commitMultiline/expected/myfile1 @@ -0,0 +1 @@ +test1 diff --git a/test/integration/commitMultiline/expected/myfile2 b/test/integration/commitMultiline/expected/myfile2 new file mode 100644 index 000000000..180cf8328 --- /dev/null +++ b/test/integration/commitMultiline/expected/myfile2 @@ -0,0 +1 @@ +test2 diff --git a/test/integration/commitMultiline/expected/myfile3 b/test/integration/commitMultiline/expected/myfile3 new file mode 100644 index 000000000..df6b0d2bc --- /dev/null +++ b/test/integration/commitMultiline/expected/myfile3 @@ -0,0 +1 @@ +test3 diff --git a/test/integration/commitMultiline/expected/myfile4 b/test/integration/commitMultiline/expected/myfile4 new file mode 100644 index 000000000..d234c5e05 --- /dev/null +++ b/test/integration/commitMultiline/expected/myfile4 @@ -0,0 +1 @@ +test4 diff --git a/test/integration/commitMultiline/expected/myfile5 b/test/integration/commitMultiline/expected/myfile5 new file mode 100644 index 000000000..4f346f1ad --- /dev/null +++ b/test/integration/commitMultiline/expected/myfile5 @@ -0,0 +1 @@ +test5 diff --git a/test/integration/commitMultiline/recording.json b/test/integration/commitMultiline/recording.json new file mode 100644 index 000000000..bb0d16af6 --- /dev/null +++ b/test/integration/commitMultiline/recording.json @@ -0,0 +1 @@ +{"KeyEvents":[{"Timestamp":931,"Mod":0,"Key":256,"Ch":32},{"Timestamp":1467,"Mod":0,"Key":256,"Ch":99},{"Timestamp":2035,"Mod":0,"Key":256,"Ch":102},{"Timestamp":2090,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2162,"Mod":0,"Key":256,"Ch":114},{"Timestamp":2259,"Mod":0,"Key":256,"Ch":115},{"Timestamp":2314,"Mod":0,"Key":256,"Ch":116},{"Timestamp":2411,"Mod":0,"Key":256,"Ch":32},{"Timestamp":2546,"Mod":0,"Key":256,"Ch":108},{"Timestamp":2578,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2627,"Mod":0,"Key":256,"Ch":110},{"Timestamp":2691,"Mod":0,"Key":256,"Ch":101},{"Timestamp":3358,"Mod":4,"Key":13,"Ch":13},{"Timestamp":3577,"Mod":4,"Key":13,"Ch":13},{"Timestamp":3810,"Mod":0,"Key":256,"Ch":116},{"Timestamp":3874,"Mod":0,"Key":256,"Ch":104},{"Timestamp":3914,"Mod":0,"Key":256,"Ch":105},{"Timestamp":3986,"Mod":0,"Key":256,"Ch":114},{"Timestamp":4107,"Mod":0,"Key":256,"Ch":100},{"Timestamp":4195,"Mod":0,"Key":256,"Ch":32},{"Timestamp":4291,"Mod":0,"Key":256,"Ch":108},{"Timestamp":4322,"Mod":0,"Key":256,"Ch":105},{"Timestamp":4370,"Mod":0,"Key":256,"Ch":110},{"Timestamp":4426,"Mod":0,"Key":256,"Ch":101},{"Timestamp":4603,"Mod":0,"Key":13,"Ch":13},{"Timestamp":5267,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
\ No newline at end of file diff --git a/test/integration/commitMultiline/setup.sh b/test/integration/commitMultiline/setup.sh new file mode 100644 index 000000000..c6c6a9271 --- /dev/null +++ b/test/integration/commitMultiline/setup.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +cd $1 + +git init + +git config user.email "CI@example.com" +git config user.name "CI" + +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/integration/commitMultiline/test.json b/test/integration/commitMultiline/test.json new file mode 100644 index 000000000..5ac0bb1f5 --- /dev/null +++ b/test/integration/commitMultiline/test.json @@ -0,0 +1,4 @@ +{ + "description": "stage a file and commit the change with a multiline commit message", + "speed": 15 +} |