#3868 Refactor the logic about diff in a single place
Closed: Fixed 5 years ago Opened 5 years ago by pingou.

Currently, the logic to determine if a file was added/modified/deleted is present in three places:
- repo_pull_request.html
- _repo_renderdiff.html
- pagure.api.forks.py

We should re-factor this to have it in one place (potentially, pagure.lib.git) which we could then call from the API as well as from a Jinja filters to be used in the templates.


Metadata Update from @pingou:
- Issue assigned to pingou

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #4067 Merged 5 years ago