Skip to content

Commit 5044576

Browse files
committed
refactor (#393)
1 parent e9b92f0 commit 5044576

11 files changed

+55
-40
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:357c85ba0f2c4e8703e643ebbebc49229d0560eb0e6ed1ffa08969d4750f5bc5
3+
size 11356
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:6e38aff8e6054660ffa274ff00ad8398601949576d887e0cc462256f16e966bb
3+
size 10200
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:4c3187949760fe07a5abc1a5b7f303ba060bedaed1bfad29535b93df72ca453c
3+
size 11336
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:a61b3a205b9254579ea67390a9b3da43ab9d26b6576555da566ba69ea07aaa3b
3+
size 10948
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:4b76a63be1b90ff164633c074caf3ce3ccfd73ed6f587a7a02e7c039af065519
2+
oid sha256:b44df1ace634ca3f4e4c05911d4bf949777b6037ba3fbb25f4a139d5048d33d0
33
size 10440
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:60a892477189310fa935d43dbaa73d92b3079cbf86023e83262db6000b7556c0
3+
size 11224

git-repository/tests/fixtures/make_am_repo.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ set -eu -o pipefail
33

44
git init -q
55

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
99

1010
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
1313
# Create an mbox formatted patch and save the path
1414
patch_path=$(git format-patch main)
1515

1616
git checkout main
1717
# 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
2020

2121
# 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

git-repository/tests/fixtures/make_bisect_repo.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ set -eu -o pipefail
33

44
git init -q
55

6-
touch 1 2
6+
touch f1 f2
77

8-
git add 1
9-
git commit -m 1 1
8+
git add f1
9+
git commit -m f1 f1
1010

11-
git add 2
12-
git commit -m 2 2
11+
git add f2
12+
git commit -m f2 f2
1313

1414
git bisect start

git-repository/tests/fixtures/make_cherry_pick_sequence_repo.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ set -eu -o pipefail
33

44
git init -q
55

6-
touch 1 2 3
6+
touch f1 f2 f3
77

8-
git add 1
9-
git commit -m 1 1
8+
git add f1
9+
git commit -m f1 f1
1010

1111
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
1717

1818
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
2222

2323
# This should fail and leave us in a cherry-pick + sequencer state
2424
git cherry-pick other-branch~2..other-branch || true

git-repository/tests/fixtures/make_merge_repo.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ set -eu -o pipefail
33

44
git init -q
55

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
99

1010
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
1414

1515
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
1818

1919
git merge other-branch || true

git-repository/tests/fixtures/make_revert_repo.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ set -eu -o pipefail
33

44
git init -q
55

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
1313
git revert --no-commit HEAD~1

0 commit comments

Comments
 (0)