Bug 2554737 - Review Request: git-diff-html - Generate side-by-side HTML diff reports for Git repositories
Summary: Review Request: git-diff-html - Generate side-by-side HTML diff reports for G...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE-NEEDSPONSOR
TreeView+ depends on / blocked
 
Reported: 2026-10-18 08:40 UTC by luhaoran
Modified: 2026-11-06 09:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description luhaoran 2026-10-18 08:40:12 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/fedora-rawhide-x86_64/11164538-git-diff-html/git-diff-html.spec

SRPM URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/fedora-rawhide-x86_64/11164538-git-diff-html/git-diff-html-1.0-1.fc46.src.rpm

Description:
git-diff-html renders the differences in a Git repository as a
Gerrit/BeyondCompare-style side-by-side HTML report. It supports
comparing the working tree against HEAD or any commit, two commits
against each other, and staged changes. Reports feature line-level
and character-level diff highlighting, C/C++ syntax highlighting,
a navigable file list, and an interactive two-pane viewer.

Fedora Account System Username: luhaoran


Reproducible: Always

Comment 1 Artur Frenszek-Iwicki 2026-10-19 14:42:23 UTC
> Source0:        %{name}-%{version}.tar.gz
Ideally, this should be a downloadable URL.
Since you're hosting on GitHub, you should consider using git tags for marking new releases.
Then, you can use the forge macros to auto-generate the URLs.
https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/

> install -D -m 0755 git_diff_html.py %{buildroot}%{_bindir}/git-diff-html
> install -D -m 0644 git-diff-html.1 %{buildroot}%{_mandir}/man1/git-diff-html.1
You should use `-p` here to preserve file timestamps.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_timestamps

Comment 2 luhaoran 2026-10-19 17:07:03 UTC
Thanks for the review! Both points are fixed:

1. Source0 is now a downloadable GitHub archive URL using the v%{version} release tag (git tags now mark releases):
   https://github.com/LuHaoran1981/GitDiffLocal/archive/refs/tags/v%{version}.tar.gz

2. Added -p to the install commands to preserve file timestamps.

Updated:
Spec URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/srpm-builds/11173452/git-diff-html.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/srpm-builds/11173452/git-diff-html-1.0-1.src.rpm

Copr build: https://copr.fedorainfracloud.org/coprs/luhaoran/git-diff-html/build/11173452/

Comment 3 Artur Frenszek-Iwicki 2026-11-06 09:58:51 UTC
Please upload the files to some persistent storage. COPR deletes the files after a couple of days; both the spec and srpm links are now 404.


Note You need to log in before you can comment on or make changes to this bug.