Skip to content

Commit

Permalink
merge conflict: missing stage the conflict file for addition
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmet-Ray committed Jul 14, 2023
1 parent 79933a6 commit d1ad069
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions proj2/gitlet/Repository.java
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ private static boolean generalMerge(String branch) throws IOException {
case 8:
conflict = true;
mergeConflict(file, otherVersion, currentVersion);
add(file);
break;
}
return conflict;
Expand Down
5 changes: 5 additions & 0 deletions proj2/testing/merge-conflicts_3/f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<<<<<<< HEAD
Another wug.
=======
This is not a wug.
>>>>>>>
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_3/h.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Another wug.
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_3/k.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And yet another wug.
5 changes: 5 additions & 0 deletions proj2/testing/merge-conflicts_4/f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<<<<<<< HEAD
Another wug.
=======
This is not a wug.
>>>>>>>
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_4/h.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Another wug.
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_4/k.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And yet another wug.
5 changes: 5 additions & 0 deletions proj2/testing/merge-conflicts_5/f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<<<<<<< HEAD
Another wug.
=======
This is not a wug.
>>>>>>>
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_5/h.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Another wug.
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_5/k.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And yet another wug.
5 changes: 5 additions & 0 deletions proj2/testing/merge-conflicts_6/f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<<<<<<< HEAD
Another wug.
=======
This is not a wug.
>>>>>>>
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_6/h.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Another wug.
1 change: 1 addition & 0 deletions proj2/testing/merge-conflicts_6/k.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And yet another wug.
4 changes: 4 additions & 0 deletions proj2/testing/merge-rm-conflicts_0/f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<<<<<<< HEAD
Another wug.
=======
>>>>>>>
1 change: 1 addition & 0 deletions proj2/testing/merge-rm-conflicts_0/h.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Another wug.
1 change: 1 addition & 0 deletions proj2/testing/merge-rm-conflicts_0/k.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And yet another wug.
4 changes: 4 additions & 0 deletions proj2/testing/merge-rm-conflicts_1/f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<<<<<<< HEAD
Another wug.
=======
>>>>>>>
1 change: 1 addition & 0 deletions proj2/testing/merge-rm-conflicts_1/h.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Another wug.
1 change: 1 addition & 0 deletions proj2/testing/merge-rm-conflicts_1/k.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And yet another wug.
4 changes: 4 additions & 0 deletions proj2/testing/src/conflict2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<<<<<<< HEAD
Another wug.
=======
>>>>>>>

0 comments on commit d1ad069

Please sign in to comment.