Skip to content

Conflict markers should match EOL style in conflicting files - #4489

Merged
ethomson merged 2 commits into
masterfrom
ethomson/conflicts_crlf
Feb 4, 2018
Merged

Conflict markers should match EOL style in conflicting files#4489
ethomson merged 2 commits into
masterfrom
ethomson/conflicts_crlf

Conversation

@ethomson

Copy link
Copy Markdown
Member

Git has updated xdiff to produce conflict markers that match the EOL style in the conflicting files. This means that if you have checked in CR/LF files into your repository, and perform a merge, you will now get a conflict file that also has CR/LF line endings. 🎉

Update our xdiff to match theirs, to give us this same functionality, and add some unit tests to ensure that it works.

Upgrade xdiff to git's most recent version, which includes changes to
CR/LF handling.  Now CR/LF included in the input files will be detected
and conflict markers will be emitted with CR/LF when appropriate.
Ensure that when the files being merged have CR/LF line endings that the
conflict markers produced in the conflict file also have CR/LF line
endings.
@ethomson
ethomson merged commit 26f5d36 into master Feb 4, 2018
@ethomson
ethomson deleted the ethomson/conflicts_crlf branch January 9, 2019 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant