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

Determine number of lines or characters changed #68

Open
finkelm opened this issue Feb 28, 2016 · 1 comment
Open

Determine number of lines or characters changed #68

finkelm opened this issue Feb 28, 2016 · 1 comment

Comments

@finkelm
Copy link

finkelm commented Feb 28, 2016

At certain times I just want to have the number of lines added and deleted, rather than a visual diff output. I can't seem to find a method to give me access to this information - it seems the only way is to regex the output to determine this by using each on ever new line . Am I wrong? It seems as if this would be a nice feature to have, even if diffy is more intended for visual output.

@samg
Copy link
Owner

samg commented Feb 28, 2016

Currently diffy doesn't do this, though I agree it would be a nice feature. The best approach would be using the Diffy::Diff#each or Diffy::Diff#injectto do the totals, like you suggest. If you or someone would like to add this functionality I'd be happy to review a PR.

Thanks!

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

2 participants