6637f37428
* cosmetics
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
$OpenBSD: patch-cvsweb_cgi,v 1.11 2003/08/16 23:18:41 naddy Exp $
|
|
--- cvsweb.cgi.orig 2002-09-26 22:56:05.000000000 +0200
|
|
+++ cvsweb.cgi 2003-08-17 01:07:29.000000000 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/perl -wT
|
|
+#!/usr/bin/perl -w
|
|
#
|
|
# cvsweb - a CGI interface to CVS trees.
|
|
#
|
|
@@ -157,7 +157,7 @@ use File::Basename ();
|
|
|
|
# == EDIT this ==
|
|
# Locations to search for user configuration, in order:
|
|
-for ("$mydir/cvsweb.conf", '/usr/local/etc/cvsweb/cvsweb.conf') {
|
|
+for ("$mydir/cvsweb.conf", '%%CONFDIR%%/cvsweb/cvsweb.conf') {
|
|
if (defined($_) && -r $_) {
|
|
$config = $_;
|
|
last;
|
|
@@ -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);
|
|
@@ -2014,20 +2009,6 @@ sub doDiff($$$$$$) {
|
|
my @difftype = @{$difftype->{'opts'}};
|
|
my $human_readable = $difftype->{'colored'};
|
|
|
|
- # 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;
|
|
- }
|
|
- }
|
|
- }
|
|
-
|
|
if ($human_readable) {
|
|
if ($hr_ignwhite) {
|
|
push @difftype, '-w';
|