Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

diffutils replacement #86

Open
leoleovich opened this issue Nov 22, 2017 · 0 comments
Open

diffutils replacement #86

leoleovich opened this issue Nov 22, 2017 · 0 comments

Comments

@leoleovich
Copy link

Hi there,
thank you for an awesome project.
Is there recommended set of functions to replace command line tool - diff and diffstat?
Something, which gives output like this:

diff -u test1 test2 | diffstat -s
1 file changed, 3 insertions(+), 3 deletions(-)

As I am playing with dmp.DiffMain(test1, test2, true) and try to pass entire files as string, I get very different output, than I expect:

[{-1 very} {1 magic,} {0  } {-1 awesome} {1 in} {0  } {-1 tes} {1 fac} {0 t
with} {1  I} {0
} {-1 o} {1 be} {0 l} {-1 d and n} {1 iev} {0 e} {-1 w data} {0
}]

The test files look like this:
test1:

very awesome test
with
old and new data

test2:

magic, in fact
with I
believe

Thanks in advance!

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

No branches or pull requests

1 participant