Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Added RCS and CVS to default exclude list.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@64 c5d04d22-be80-434c-894e-aa346cc9e8e8
  • Loading branch information
darren committed Jan 3, 2002
1 parent c3da03a commit 15eee12
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
3 changes: 2 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Current Version: @@VERSION@@

ctags-5.2.1 (Tue Jan 01 2002)
ctags-5.2.1 (Thu Jan 03 2002)
* Portabilitiy fixes [Mingw32].
* Added "RCS" and "CVS" to list of directories excluded by default.

ctags-5.2 (Sun Dec 23 2001)
* Portabilitiy fixes [HP-UX, Solaris, VMS, OS/2].
Expand Down
7 changes: 4 additions & 3 deletions ctags.1
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,10 @@ simple textual comparison.
If \fIpattern\fP begins with the character '@', then the rest of the string
is interpreted as a file name from which to read exclusion patterns, one per
line. If \fIpattern\fP is empty, the list of excluded patterns is cleared.
Note that at program startup, the exclude list contains "EIFGEN" and "SCCS"
by default, which are directories for which it is generally not desirable to
descend.
Note that at program startup, the default exclude list contains "EIFGEN",
"SCCS", "RCS", and "CVS", which are names of directories for which it is
generally not desirable to descend while processing the \fB--recurse\fP
option.

.TP 5
\fB--excmd\fP=\fItype\fP
Expand Down
6 changes: 2 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,13 +896,15 @@ extern void processExcludeOption (const char *const __unused__ option,
Excluded = sl;
else
stringListCombine (Excluded, sl);
verbose (" adding exclude patterns from %s\n", parameter + 1);
}
else
{
vString *const item = vStringNewInit (parameter);
if (Excluded == NULL)
Excluded = stringListNew ();
stringListAdd (Excluded, item);
verbose (" adding exclude pattern: %s\n", parameter);
}
}

Expand Down Expand Up @@ -1347,10 +1349,6 @@ extern int main (int __unused__ argc, char **argv)
setExecutableName (*argv++);
checkRegex ();

/* always excluded by default */
processExcludeOption (NULL, "EIFGEN");
processExcludeOption (NULL, "SCCS");

args = cArgNewFromArgv (argv);
previewFirstOption (args);
testEtagsInvocation ();
Expand Down
10 changes: 9 additions & 1 deletion options.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,8 +1609,16 @@ extern void initOptions (void)
OptionFiles = stringListNew ();
verbose ("Setting option defaults\n");
installHeaderListDefaults ();
verbose (" Installing default language mappings:\n");
verbose (" Installing default language mappings:\n");
installLanguageMapDefaults ();

/* always excluded by default */
verbose (" Installing default exclude patterns:\n");
processExcludeOption (NULL, "EIFGEN");
processExcludeOption (NULL, "SCCS");
processExcludeOption (NULL, "RCS");
processExcludeOption (NULL, "CVS");

}

extern void freeOptionResources (void)
Expand Down

0 comments on commit 15eee12

Please sign in to comment.