#724 Line numbers in PR diffs start from 1
Closed: Fixed 4 years ago by pingou. Opened 9 years ago by lsedlar.

In a pull request displaying the diffs the line numbers for each file start at 1, so there is no correspondence between this number and the actual line number.

Maybe it can be done like Github does it?

Snimek_z_2016-02-09_09-45-57.png


Yeah, having the diff line numbers here is pretty confusing. I have created a PR to hide them here:
https://pagure.io/pagure/pull-request/813

although, ultimately the way we present diffs to the user needs to be redone before we can have a presentation similar to what is requested in this bug, but this PR is a cleanup until that can happen.

@pingou
I have started to look at this so far I have the backend code doing the magic to get the new and old line number. There is still a few stuff to fix but below is how it looks like

@ryanlerch how do you think we should display the old and new line number ? Similar to github with the color of the diff ?

Screenshot_from_2016-10-03_21-57-35.png

we can now do this a lot easier with the use of diff2html. diffs for commits actually do this now in pagure 5.0

PR diffs currently are a bit harder, due to inline comments, so blocking on #3488

Metadata Update from @ryanlerch:
- Issue marked as blocking: #3488

6 years ago

Metadata Update from @ryanlerch:
- Issue unmarked as blocking: #3488
- Issue marked as blocking: #3823

6 years ago

Metadata Update from @jlanda:
- Issue assigned to jlanda

4 years ago

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #4951 Merged 4 years ago