# HG changeset patch # User Brendan Cully # Date 1160608751 25200 # Node ID 2edf53386d86c887cb5bcb70c2008dc4b50a6412 # Parent 04fa31a43b93d936e22560880bc22c2f6861c745 gitweb: add file diff view diff -r 04fa31a43b93 -r 2edf53386d86 templates/gitweb/fileannotate.tmpl --- a/templates/gitweb/fileannotate.tmpl Wed Oct 11 23:31:05 2006 +0200 +++ b/templates/gitweb/fileannotate.tmpl Wed Oct 11 16:19:11 2006 -0700 @@ -18,7 +18,9 @@ changeset | file | revisions | -annotate | raw
+annotate | +diff | +raw
#file|escape#
diff -r 04fa31a43b93 -r 2edf53386d86 templates/gitweb/filediff.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/gitweb/filediff.tmpl Wed Oct 11 16:19:11 2006 -0700 @@ -0,0 +1,47 @@ +{header} +{repo|escape}: diff {file|escape} + + + + + + + + +
{file|escape}
+ + + + + + +{parent%filediffparent} +{child%filediffchild} + + + + +
changeset {rev}:{node|short}
manifest:{node|short}
+ +
+ +{diff} +
+
+ +{footer} diff -r 04fa31a43b93 -r 2edf53386d86 templates/gitweb/filelog.tmpl --- a/templates/gitweb/filelog.tmpl Wed Oct 11 23:31:05 2006 +0200 +++ b/templates/gitweb/filelog.tmpl Wed Oct 11 16:19:11 2006 -0700 @@ -17,6 +17,7 @@ file | revisions | annotate | +diff | rss
diff -r 04fa31a43b93 -r 2edf53386d86 templates/gitweb/filerevision.tmpl --- a/templates/gitweb/filerevision.tmpl Wed Oct 11 23:31:05 2006 +0200 +++ b/templates/gitweb/filerevision.tmpl Wed Oct 11 16:19:11 2006 -0700 @@ -19,6 +19,7 @@ file | revisions | annotate | +diff | raw
diff -r 04fa31a43b93 -r 2edf53386d86 templates/gitweb/map --- a/templates/gitweb/map Wed Oct 11 23:31:05 2006 +0200 +++ b/templates/gitweb/map Wed Oct 11 16:19:11 2006 -0700 @@ -8,7 +8,7 @@ naventry = '#label|escape# ' navshortentry = '#label|escape# ' filedifflink = '#file|escape# ' -filenodelink = '#file|escape#file | annotate | revisions' +filenodelink = '#file|escape#file | annotate | diff | revisions' fileellipses = '...' changelogentry = changelogentry.tmpl searchentry = changelogentry.tmpl @@ -18,6 +18,7 @@ manifestfileentry = '#permissions|permissions##size##basename|escape#file | revisions | annotate' filerevision = filerevision.tmpl fileannotate = fileannotate.tmpl +filediff = filediff.tmpl filelog = filelog.tmpl fileline = '
   #linenumber# #line|escape#
' annotateline = '#author|obfuscate#@#rev#
#line|escape#
'