mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
More generic merge conflict detection
This commit is contained in:
committed by
Jesse Duffield
parent
d502c43ae8
commit
fd38ad8096
@ -51,6 +51,13 @@ foo
|
|||||||
++=======
|
++=======
|
||||||
bar
|
bar
|
||||||
++>>>>>>> branch
|
++>>>>>>> branch
|
||||||
|
|
||||||
|
<<<<<<< Updated upstream: foo/bar/baz.go
|
||||||
|
foo
|
||||||
|
bar
|
||||||
|
=======
|
||||||
|
baz
|
||||||
|
>>>>>>> branch
|
||||||
`,
|
`,
|
||||||
expected: []*mergeConflict{
|
expected: []*mergeConflict{
|
||||||
{
|
{
|
||||||
@ -78,6 +85,11 @@ bar
|
|||||||
middle: 27,
|
middle: 27,
|
||||||
end: 29,
|
end: 29,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
start: 31,
|
||||||
|
middle: 34,
|
||||||
|
end: 36,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user