Skip to content
Snippets Groups Projects
Commit 645e3620 authored by Sami Kerola's avatar Sami Kerola Committed by Kamil Dudka
Browse files

config.c / manual: list taboo extensions in alphabetical order


Alphabetical order helps users to read what is in the list.  In config.c
horizontal list is converted to vertical to allow version control to track
each extension separately.  Vertical ordered lists are also easy to cross
check, and indeed that helped noticing manual page had missed ,v extension
that was probably added to avoid RCS files being mangled by the logrotate.

Signed-off-by: default avatarSami Kerola <kerolasa@iki.fi>

Closes #126
parent 0d21e082
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -126,10 +126,22 @@ enum {
STATE_ERROR = 64,
};
 
static const char *defTabooExts[] = { ".rpmsave", ".rpmorig", "~", ",v",
".disabled", ".dpkg-old", ".dpkg-dist", ".dpkg-new", ".cfsaved",
".ucf-old", ".ucf-dist", ".ucf-new",
".rpmnew", ".swp", ".cfsaved", ".rhn-cfg-tmp-*"
static const char *defTabooExts[] = {
",v",
".cfsaved",
".disabled",
".dpkg-dist",
".dpkg-new",
".dpkg-old",
".rhn-cfg-tmp-*",
".rpmnew",
".rpmorig",
".rpmsave",
".swp",
".ucf-dist",
".ucf-new",
".ucf-old",
"~"
};
static int defTabooCount = sizeof(defTabooExts) / sizeof(char *);
 
Loading
Loading
Loading
Loading
@@ -573,21 +573,21 @@ The current taboo extension list is changed (see the \fBinclude\fR directive
for information on the taboo extensions). If a + precedes the list of
extensions, the current taboo extension list is augmented, otherwise it
is replaced. At startup, the taboo extension list
.IR .rpmsave ,
.IR .rpmorig ,
.IR ~ ,
.IR ,v ,
.IR .cfsaved ,
.IR .disabled ,
.IR .dpkg\-old ,
.IR .dpkg\-dist ,
.IR .dpkg\-new ,
.IR .cfsaved ,
.IR .ucf\-old ,
.IR .ucf\-dist ,
.IR .ucf\-new ,
.IR .dpkg\-old ,
.IR .rhn\-cfg\-tmp\-* ,
.IR .rpmnew ,
.IR .rpmorig ,
.IR .rpmsave ,
.IR .swp ,
.IR .cfsaved ,
.IR .rhn\-cfg\-tmp\-*
.IR .ucf\-dist ,
.IR .ucf\-new ,
.IR .ucf\-old ,
.IR ~
 
.TP
\fBtaboopat\fR [+] \fIlist\fR
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment