]> Lady’s Gitweb - Gitweb/commit
gitweb: Do not show 'patch' link for merge commits
authorJakub Narebski <redacted>
Fri, 9 Oct 2009 12:26:44 +0000 (14:26 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commit71c596262ba5ab1eb6a961e48359b48ee9fdacd23f7bc5ea4cf00cb1165b19a5
tree6470e115ac17a00c5b88378e7c20d7325451046400cdbfa1512b4c1e2f5a777e
parented433e486ee9aa30b6685a586a09ac0a32dcf98d879ccc9ced5ed2eb6a52422f
gitweb: Do not show 'patch' link for merge commits

The 'patch' view is about generating text/plain patch that can be
given to "git am", and "git am" doesn't understand merges anyway.
Therefore link to 'patch' view should not be shown for merge commits.

Also call to git-format-patch inside the 'patch' action would fail
when 'patch' action is called for a merge commit, with "Reading
git-format-patch failed" text as 'patch' view body.

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