{"draft":null,"from":8,"to":318,"files":[{"path":"client/src/settle.ts","added":19,"removed":0,"diff":"--- a/client/src/settle.ts\n+++ b/client/src/settle.ts\n@@ -100,3 +100,22 @@\n \t\treturn 0;\n \t}\n }\n+\n+/**\n+ * The first line (1-based) of what looks like a git conflict left in a text: a \"<<<<<<< \" line, then a \"=======\" line,\n+ * then a \">>>>>>> \" line. abso's own blocks are not these (their opening line is exact, and `abso settle` finds them);\n+ * a merge done by git, or markers typed or pasted by hand, are plain text to abso, which would publish them as they are.\n+ */\n+export function gitMarkerLine(text: string): number | undefined {\n+\tconst lines = text.split(/\\r?\\n/);\n+\tfor (let i = 0; i < lines.length; i++) {\n+\t\tif (!lines[i]!.startsWith(\"<<<<<<< \") || lines[i] === OPEN) continue;\n+\t\tlet mid = false;\n+\t\tfor (let j = i + 1; j < lines.length; j++) {\n+\t\t\tif (lines[j]!.startsWith(\"<<<<<<< \")) break;\n+\t\t\tif (lines[j] === MID) mid = true;\n+\t\t\telse if (mid && lines[j]!.startsWith(\">>>>>>> \")) return i + 1;\n+\t\t}\n+\t}\n+\treturn undefined;\n+}"}],"unmatched":[]}