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
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.
pagure.lib.git
Metadata Update from @pingou: - Issue assigned to pingou
Commit f6a6e0ca fixes this issue