Skip to content

Teaching -Xours/-Xtheirs to binary ll-merge driver

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2merge: teach -Xours/-Xtheirs to binary ll-merge driverDocumentation/merge-strategies.txt ll-merge.c t/t6037-merge-ours-theirs.sh+35 -70 replies
2/2attr: "binary" attribute should choose built-in "binary" merge driverDocumentation/gitattributes.txt attr.c t/t6037-merge-ours-theirs.sh+3 -36 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Teaching -Xours/-Xtheirs to binary ll-merge driver

The part that grants Stephen's wish is unchanged from the earlier "perhaps like this" patch, but this time with a bit of documentation and test.

A more important change between the two actually is [PATCH 2/2]. When a "binary" synthetic attribute is given to a path, we used to
(1) disable textual diff and (2) disable CR/LF conversion, but it is also sane to disable the textual merge for a path marked as "binary", and setting the "-merge" attribute to summon the "binary" ll-merge driver is the way to do so.

Junio C Hamano (2):
merge: teach -Xours/-Xtheirs to binary ll-merge driver
attr: "binary" attribute should choose built-in "binary" merge driver

 Documentation/gitattributes.txt    |  2 +-
 Documentation/merge-strategies.txt |  3 ++-
 attr.c                             |  2 +-
 ll-merge.c                         | 25 ++++++++++++++++++++-----
 t/t6037-merge-ours-theirs.sh       | 14 +++++++++++++-
 5 files changed, 37 insertions(+), 9 deletions(-)
Signature · 1 line
1.7.12.322.g2c7d289