2006-02-04 12:01:35 -05:00
|
|
|
$OpenBSD: patch-cvsweb_cgi,v 1.12 2006/02/04 17:01:36 naddy Exp $
|
|
|
|
--- cvsweb.cgi.orig Thu Sep 26 22:56:05 2002
|
|
|
|
+++ cvsweb.cgi Sat Feb 4 17:33:35 2006
|
2003-08-16 19:18:41 -04:00
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/perl -wT
|
|
|
|
+#!/usr/bin/perl -w
|
|
|
|
#
|
|
|
|
# cvsweb - a CGI interface to CVS trees.
|
|
|
|
#
|
2003-08-16 14:12:10 -04:00
|
|
|
@@ -157,7 +157,7 @@ use File::Basename ();
|
2001-08-01 15:59:25 -04:00
|
|
|
|
|
|
|
# == EDIT this ==
|
2000-10-01 15:18:53 -04:00
|
|
|
# Locations to search for user configuration, in order:
|
2001-08-01 15:59:25 -04:00
|
|
|
-for ("$mydir/cvsweb.conf", '/usr/local/etc/cvsweb/cvsweb.conf') {
|
2003-08-16 19:18:41 -04:00
|
|
|
+for ("$mydir/cvsweb.conf", '%%CONFDIR%%/cvsweb/cvsweb.conf') {
|
2001-08-01 15:59:25 -04:00
|
|
|
if (defined($_) && -r $_) {
|
|
|
|
$config = $_;
|
|
|
|
last;
|
2003-08-16 14:12:10 -04:00
|
|
|
@@ -193,7 +193,7 @@ $tmpdir = defined($ENV{TMPDIR}) ? $ENV{T
|
|
|
|
$LOG_FILESEPARATOR = q/^={77}$/;
|
|
|
|
$LOG_REVSEPARATOR = q/^-{28}$/;
|
|
|
|
|
|
|
|
-@DIFFTYPES = qw(h H u c s);
|
|
|
|
+@DIFFTYPES = qw(h H u c);
|
|
|
|
@DIFFTYPES{@DIFFTYPES} = (
|
|
|
|
{
|
|
|
|
'descr' => 'colored',
|
|
|
|
@@ -215,11 +215,6 @@ $LOG_REVSEPARATOR = q/^-{28}$/;
|
|
|
|
'opts' => ['-c'],
|
|
|
|
'colored' => 0,
|
|
|
|
},
|
|
|
|
- {
|
|
|
|
- 'descr' => 'side by side',
|
|
|
|
- 'opts' => ['--side-by-side', '--width=164'],
|
|
|
|
- 'colored' => 0,
|
|
|
|
- },
|
|
|
|
);
|
|
|
|
|
|
|
|
@LOGSORTKEYS = qw(cvs date rev);
|
2006-02-04 12:01:35 -05:00
|
|
|
@@ -2013,20 +2008,6 @@ sub doDiff($$$$$$) {
|
|
|
|
|
2003-08-16 14:12:10 -04:00
|
|
|
my @difftype = @{$difftype->{'opts'}};
|
|
|
|
my $human_readable = $difftype->{'colored'};
|
2006-02-04 12:01:35 -05:00
|
|
|
-
|
2003-08-16 14:12:10 -04:00
|
|
|
- # apply special options
|
|
|
|
- if ($showfunc) {
|
|
|
|
- push @difftype, '-p' if $f ne 's';
|
|
|
|
-
|
|
|
|
- my ($re1, $re2);
|
|
|
|
-
|
|
|
|
- while (($re1, $re2) = each %funcline_regexp) {
|
|
|
|
- if ($fullname =~ /$re1/) {
|
|
|
|
- push @difftype, '-F', $re2;
|
|
|
|
- last;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
2006-02-04 12:01:35 -05:00
|
|
|
|
2003-08-16 14:12:10 -04:00
|
|
|
if ($human_readable) {
|
|
|
|
if ($hr_ignwhite) {
|