#2193 Improve git diff of pull requests
Closed: Insufficient data a year ago by wombelix. Opened 7 years ago by mbasti.

Current git diff of pull requests is suboptimal. It doesn't show proper lines which changed and doesn't provide info about classes, functions where chunk is.

I attached file with POC where by using pygit2 I was able to create such diff and it can be transformed from CLI to HTML (I just don't know how and where to put such function)

pygit-diff.py


Does it work with pygit2 0.21 ? It's the minimal version we support since it is the version present in epel7

No it doesn't work with pygit 0.21, there are missing a lot of things :-(

Why can't we just get an updated version of pygit into EPEL? As a parallel installable package if needed. This doesn't even take a package review.

Metadata Update from @pingou:
- Issue tagged with: RFE

7 years ago

Metadata Update from @lslebodn:
- Issue tagged with: IDM

6 years ago

https://pagure.io/pagure/pull-request/3051 is bumping the minimal version to 0.22.1, maybe we could bump it to 0.24.2 (which is what we currently have in epel7)

@mbasti do you remember from which version this code should work?

I think it should work with 0.24.2, I had a POC on a branch[0] for that too. I am pretty sure it is broken but it could be a starting point.

[0] - https://pagure.io/fork/cverna/pagure/diff/master..add_lineno_to_diff

@cverna if that's still a thing in the latest release (5.13.3), would you mind to create a PR to further discuss and work on it? I don't see a reason at this point to leave the issue open after 4 years without updates.

Metadata Update from @wombelix:
- Issue close_status updated to: Insufficient data
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata
Attachments 1
Attached 7 years ago View Comment