source@mandoc.bsd.lv
 help / color / Atom feed
* cvsweb: Delete $showfunc configuration variable.
@ 2019-11-29 18:16 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-11-29 18:16 UTC (permalink / raw)
  To: source

Log Message:
-----------
Delete $showfunc configuration variable.
There is really no point in switching off diff(1) -p.

Modified Files:
--------------
    cvsweb:
        cvsweb.cgi
        cvsweb.conf

Revision Data
-------------
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 4.34
retrieving revision 4.35
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r4.34 -r4.35
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -68,8 +68,7 @@ use vars qw (
   $bylog $byfile $defaultDiffType $logsort $cvstree $cvsroot
   $charset $output_filter %CMD $allow_compress $backicon $diricon $fileicon
   $fullname $logo $defaulttitle $address $binfileicon $iconsdir
-  $shortLogLen $show_author
-  $hr_breakable $showfunc $hr_ignwhite $hr_ignkeysubst
+  $shortLogLen $show_author $hr_breakable $hr_ignwhite $hr_ignkeysubst
   $inputTextSize $mime_types $allow_annotate $allow_markup $allow_mailtos
   $allow_log_extra $allow_dir_extra $allow_source_extra
   $edit_option_form
@@ -203,7 +202,7 @@ $config = '/conf/cvsweb/cvsweb.conf';
 
 $logo = $defaulttitle =
   $address = $shortLogLen = $show_author =
-  $hr_breakable = $showfunc = $hr_ignwhite =
+  $hr_breakable = $hr_ignwhite =
   $hr_ignkeysubst = $inputTextSize = $mime_types = $allow_annotate =
   $allow_markup = $allow_compress = $edit_option_form =
   $show_subdir_lastmod = $show_log_in_markup = $preformat_in_markup =
@@ -2127,7 +2126,7 @@ sub doDiff($$$$$$)
   my $human_readable = $difftype->{colored};
 
   # Apply special diff options.
-  push @difftype, '-p' if $showfunc;
+  push @difftype, '-p';
 
   if ($human_readable) {
     push(@difftype, '-w')  if $hr_ignwhite;
Index: cvsweb.conf
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf,v
retrieving revision 4.22
retrieving revision 4.23
diff -Lcvsweb.conf -Lcvsweb.conf -u -p -r4.22 -r4.23
--- cvsweb.conf
+++ cvsweb.conf
@@ -168,11 +168,6 @@ $use_descriptions = 0;
 #
 $hr_breakable = 1;
 
-# Print function names in diffs (unified and context only).
-# See the -p option in the diff(1) man page.
-#
-$showfunc = 1;
-
 # Ignore whitespace in human readable diffs? ('-w' option to diff)
 #
 $hr_ignwhite = 0;
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-29 18:16 cvsweb: Delete $showfunc configuration variable schwarze

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git