[PATCH] match_glob_list ! enhancement
From: Kyle McKay <mackyle_at_tigris.org>
Date: 2006-11-26 07:09:50 CET
[[[
* subversion/libsvn_subr/svn_string.c
The attached patch adds support for exception globs in both the
Currently if you want to ignore all files matching a pattern except
http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=15469
http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=15480
This patch provides the following behavior for the global-ignores and
1) The total list of ignore patterns is the contents of global-
2) The result is initially set to NOT_MATCHED.
3) ALL ignore patterns are then examined in order. (This is a change
4) As a special case, if the ignore pattern is a single exclamation
5) An ignore pattern that starts with "\\" or "\!" has the leading
6) An ignore pattern that starts with exclamation point ('!') has the
7) All other ignore patterns are used as-is. If such a pattern
8) The end result is that the last matching glob pattern wins and if
So to do what Richard S. Hall wanted (see the above mentioned
*
Which means that everything except example would be ignored.
Obviously this change is not 100% backwards compatible. If you have
The '!' character was chosen based on CVS usage so that a "!" pattern
Kyle
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.