]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix bug in "blobdiff" view for split (e.g. file to symlink) patches
authorJakub Narebski <redacted>
Thu, 5 Apr 2007 11:45:41 +0000 (13:45 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commit2830c551d07089a04fe44509c37b1986a299f3af839952cb200620a4e5763ddc
tree64429545be2414c586cd53036813ca5254e4222d85480ea080f5a18a8eed6d7b
parent210efc23425a89777049fe2f558106a371a7b0c33d7899dea851fa8c3690ab25
gitweb: Fix bug in "blobdiff" view for split (e.g. file to symlink) patches

git_patchset_body needs patch generated with --full-index option to
detect split patches, meaning two patches which corresponds to single
difftree (raw diff) entry.  An example of such situation is changing
type (mode) of a file, e.g. from plain file to symbolic link.

Add, in git_blobdiff, --full-index option to patch generating git diff
invocation, for the 'html' format output ("blobdiff" view).

"blobdiff_plain" still uses shortened sha1 in the extended git diff
header "index <hash>..<hash>[ <mode>]" line.

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