File tree Expand file tree Collapse file tree 11 files changed +55
-40
lines changed
git-repository/tests/fixtures Expand file tree Collapse file tree 11 files changed +55
-40
lines changed Original file line number Diff line number Diff line change
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:357c85ba0f2c4e8703e643ebbebc49229d0560eb0e6ed1ffa08969d4750f5bc5
3
+ size 11356
Original file line number Diff line number Diff line change
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e38aff8e6054660ffa274ff00ad8398601949576d887e0cc462256f16e966bb
3
+ size 10200
Original file line number Diff line number Diff line change
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c3187949760fe07a5abc1a5b7f303ba060bedaed1bfad29535b93df72ca453c
3
+ size 11336
Original file line number Diff line number Diff line change
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a61b3a205b9254579ea67390a9b3da43ab9d26b6576555da566ba69ea07aaa3b
3
+ size 10948
Original file line number Diff line number Diff line change 1
1
version https://git-lfs.github.com/spec/v1
2
- oid sha256:4b76a63be1b90ff164633c074caf3ce3ccfd73ed6f587a7a02e7c039af065519
2
+ oid sha256:b44df1ace634ca3f4e4c05911d4bf949777b6037ba3fbb25f4a139d5048d33d0
3
3
size 10440
Original file line number Diff line number Diff line change
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60a892477189310fa935d43dbaa73d92b3079cbf86023e83262db6000b7556c0
3
+ size 11224
Original file line number Diff line number Diff line change @@ -3,20 +3,20 @@ set -eu -o pipefail
3
3
4
4
git init -q
5
5
6
- echo 1 .main > 1
7
- git add 1
8
- git commit -m 1 .main 1
6
+ echo file .main > file
7
+ git add file
8
+ git commit -m file .main file
9
9
10
10
git checkout -b other-branch
11
- echo 1 .other-branch > 1
12
- git commit -m 1 .other-branch 1
11
+ echo file .other-branch > file
12
+ git commit -m file .other-branch file
13
13
# Create an mbox formatted patch and save the path
14
14
patch_path=$( git format-patch main)
15
15
16
16
git checkout main
17
17
# Create a conflict
18
- echo 1 .main.update > 1
19
- git commit -m 1 .main.update 1
18
+ echo file .main.update > file
19
+ git commit -m file .main.update file
20
20
21
21
# This will fail due to the merge conflict and leave us in a 'apply mbox in progress' state
22
- git am 0001-1 .other-branch.patch || true
22
+ git am 0001-file .other-branch.patch || true
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ set -eu -o pipefail
3
3
4
4
git init -q
5
5
6
- touch 1 2
6
+ touch f1 f2
7
7
8
- git add 1
9
- git commit -m 1 1
8
+ git add f1
9
+ git commit -m f1 f1
10
10
11
- git add 2
12
- git commit -m 2 2
11
+ git add f2
12
+ git commit -m f2 f2
13
13
14
14
git bisect start
Original file line number Diff line number Diff line change @@ -3,22 +3,22 @@ set -eu -o pipefail
3
3
4
4
git init -q
5
5
6
- touch 1 2 3
6
+ touch f1 f2 f3
7
7
8
- git add 1
9
- git commit -m 1 1
8
+ git add f1
9
+ git commit -m f1 f1
10
10
11
11
git checkout -b other-branch
12
- echo 2 .other-branch > 2
13
- git add 2
14
- git commit -m 2 .other-branch 2
15
- git add 3
16
- git commit -m 3 3
12
+ echo f2 .other-branch > f2
13
+ git add f2
14
+ git commit -m f2 .other-branch f2
15
+ git add f3
16
+ git commit -m f3 f3
17
17
18
18
git checkout main
19
- echo 2 .main > 2
20
- git add 2
21
- git commit -m 2 .main 2
19
+ echo f2 .main > f2
20
+ git add f2
21
+ git commit -m f2 .main f2
22
22
23
23
# This should fail and leave us in a cherry-pick + sequencer state
24
24
git cherry-pick other-branch~2..other-branch || true
Original file line number Diff line number Diff line change @@ -3,17 +3,17 @@ set -eu -o pipefail
3
3
4
4
git init -q
5
5
6
- echo 1 .main > 1
7
- git add 1
8
- git commit -m 1 .main 1
6
+ echo file .main > file
7
+ git add file
8
+ git commit -m file .main file
9
9
10
10
git checkout -b other-branch
11
- echo 1 .other-branch > 1
12
- git add 1
13
- git commit -m 1 .other-branch 1
11
+ echo file .other-branch > file
12
+ git add file
13
+ git commit -m file .other-branch file
14
14
15
15
git checkout main
16
- echo 1 .main changed > 1
17
- git commit -m 1 .main\ changed 1
16
+ echo file .main changed > file
17
+ git commit -m file .main\ changed file
18
18
19
19
git merge other-branch || true
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ set -eu -o pipefail
3
3
4
4
git init -q
5
5
6
- touch 1 2 3
7
- git add 1
8
- git commit -m 1 1
9
- git add 2
10
- git commit -m 2 2
11
- git add 3
12
- git commit -m 3 3
6
+ touch f1 f2 f3
7
+ git add f1
8
+ git commit -m f1 f1
9
+ git add f2
10
+ git commit -m f2 f2
11
+ git add f3
12
+ git commit -m f3 f3
13
13
git revert --no-commit HEAD~1
You can’t perform that action at this time.
0 commit comments