Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add patch format. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hoverlover
Copy link

This commit adds a patch format similar to diff:

<?xml version="1.0" encoding="UTF-8"?>
<foo>
-  <bar>one</bar>
+  <bar>two</bar>
</foo>

Just need to set Differ.format = :patch.

@echarp
Copy link

echarp commented Oct 26, 2014

This looks just great, although without the console colors, it would be even better ;)

@hoverlover
Copy link
Author

I actually like the console colors, and think they are helpful. With a simple example like above, it doesn't really matter. But when you have a long many lines of text and they are littered with changes, the colors really help make the additions and deletions stand out.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants