Monorepo management for opam overlays
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-git: Merge.conflict carries diff3 chunks + blob hashes

The conflict record now includes the structured Merge3.merged_chunk
list (for content conflicts) and the three blob hashes (for both
content and structural conflicts). The chunks expose the diff3
result so consumers don't have to re-run the merge to inspect the
unstable regions; the hashes let them re-read the original blobs
from the object database for context.

This is what the upcoming monopam pull --auto resolver needs: per
conflict it gets the path, the reason, the conflicted regions with
surrounding stable context, and access to the original blobs for
verification.

Also tidies pull_no_trailing_newline.t to use grep -a so files
ending without a newline don't get classified as binary by grep.

+1 -1
+1 -1
test/pull_no_trailing_newline.t/run.t
··· 91 91 $ export GIT_COMMITTER_EMAIL="alice@example.com" 92 92 $ monopam pull lib > /tmp/pull.out 2>&1 93 93 [4] 94 - $ grep -E "^CONFLICT" /tmp/pull.out 94 + $ grep -a -E "^CONFLICT" /tmp/pull.out 95 95 CONFLICT in lib/src/main.ml 96 96 97 97 Both versions are visible in the merged file: