gitweb: git_blobdiff_plain is git_blobdiff('plain')
authorJakub Narebski <jnareb@gmail.com>
Fri, 25 Aug 2006 19:14:49 +0000 (21:14 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 26 Aug 2006 02:42:24 +0000 (19:42 -0700)
commit9b71b1f6b3b57b3771151d252a5e22886524a154
tree0adcfb3d99e642509e6eb2156c5b0fb1a831254a
parent7c5e2ebb5d8ca3d8428e19593c69a4f329d64855
gitweb: git_blobdiff_plain is git_blobdiff('plain')

git_blobdiff and git_blobdiff_plain are now collapsed into one
subroutine git_blobdiff, with format (currently 'html' which is
default format corresponding to git_blobdiff, and 'plain'
corresponding to git_blobdiff_plain) specified in argument.

blobdiff_plain format is now generated either by git-diff-tree
or by git-diff.  Added X-Git-Url: header.  From-file and to-file name
in header are corrected.

Note that for now commitdiff_plain does not detect renames
and copying, while blobdiff_plain does.

While at it, set expires to "+1d" for non-textual hash ids.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl