]> Lady’s Gitweb - Gitweb/commit
gitweb: fix commitdiff for root commits
authorJakub Narebski <redacted>
Sun, 6 Aug 2006 14:14:25 +0000 (16:14 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:05:47 +0000 (00:05 -0400)
commit8d7fa7d2515d3b2a9db212af45f2563b962cb2e5a9f07bb58fe3531af1976734
tree8ea2f57187f031bde939b88f4399c70ae15cf75b38c2ab18e2fd66e1e80ba317
parent559a671a6825d8a4688e81010411d201e260557812434e6f3e54d19e3a036670
gitweb: fix commitdiff for root commits

After changing all "-|" open invocations to list form, commitdiff for
initial commit (without parent) got broken; it returned incorrectly
empty patch earlier.  Use '--root' option to git-diff-tree for initial
(root) commit.

No checking for empty $hash_parent in git_commitdiff_plain -- we rely
on gitweb to give correct parameters for commitdiff_plain action.

Noticed by Matthias Lederhofer (matled).

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.209222 seconds and 4 git commands to generate.