-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Exact line modified #152
Comments
There isn't an option to print line numbers where diff's occur. Adding such a feature wouldn't be simple because blank lines are removed early in the processing chain; the positions of removed blank lines would need to be maintained and passed along. Having said that, line number information (ignoring blanks) is kept in the diff code. If you're curious, uncomment lines 10237 and 10238 at the bottom of the subroutine array_diff(). This is from cloc-1.72.pl:
then run with |
In the output generated by that modification, are the line numbers returned absolute (ignoring blank lines, already removed) or are they further divided into comment and code lines? |
The answer is actually both: |
Hello, I've used cloc for a while now and I find it very useful, specially the diff functionality. But I was wondering if there is an option to print out exactly which lines have been modified, the exact line numbers for each file pair analyzed, in the report, or maybe in the alignment file (when using --diff-alignment).
If this is not currently supported, which is the best way to tackle this modification? I've been taking a look at the code, but my Perl is terrible.
Thanks for the tool and for your time
Aurelio
The text was updated successfully, but these errors were encountered: