Page MenuHomeSoftware Heritage

Support identification of code fragments in diffs
Closed, MigratedEdits Locked

Description

It has been pointed out by Moritz Schubotz in an EOSC task force discussion that it is useful to be able to point to fragments of code in a diff, not just in a file.
Here is an example of what can be done in GitHub today:

https://github.com/wikimedia/mediawiki-services-texvcjs/pull/38/files#diff-84bc28ec886369e8d279d3c006b1134dR761-R765

It would be nice to provide a similar functionality in Software Heritage.

Event Timeline

rdicosmo created this task.

Thank you for reporting @rdicosmo .

Just for clarification:

The example might not been chosen optimal. The lines I selected above are just automated white-space adjustments performed by the IDE not really relevant for the pull request. What was actually done in the pull request is more apparent in the test case

https://github.com/wikimedia/mediawiki-services-texvcjs/pull/38/files#diff-f60bc2e9025c35b87e7af488754ac579R349

where white spaces in the LaTeX code were removed.

anlambert changed the task status from Open to Work in Progress.Aug 5 2020, 2:13 PM
anlambert raised the priority of this task from Low to Normal.