rtfpessoa / diff2html

Pretty diff to html javascript library (diff2html)
https://diff2html.xyz
MIT License
2.8k stars 273 forks source link

How to display the number of different points #449

Closed 1506085843 closed 11 months ago

1506085843 commented 1 year ago

image How can I get the total number of distinct points and display?For example, there are 6 differences in the above picture, I want to show 6 differences after the file name, how can I do that?

rtfpessoa commented 1 year ago

👋 you kind of have this information in the file list before the diffs.

Is that what you are looking for?

To accomplish that you could change the data passed to the generic-file-path template. You would need to pass more data to the template, but it should be simple. If you are interested feel free to send a PR with more data being pushed to the template and then you can use your custom template to accomplish any changes in the actual HTML.

image
rtfpessoa commented 11 months ago

Closing for inactivity.