aboutsummaryrefslogtreecommitdiffstats
path: root/exclude.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Fix a typo that Stefan Beller pointed out.Wayne Davison2013-12-141-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Make --delete-excluded work better with --filter=merge.Wayne Davison2011-09-151-6/+2
|
* Add .hg dir exclude to default_cvsignore list.Wayne Davison2011-02-171-1/+1
| | | | Fixes bug 7957.
* Fix a warning about a %d not getting an int (on some platforms).Wayne Davison2009-08-101-1/+1
|
* Refactorings to the filter code, most notably:Matt McCutchen2009-05-231-174/+217
| | | | | | | | | | | | | | | | | | | | | | - Improve function name: parse_rule -> parse_filter_str (to make the similarity with parse_filter_file clearer, and better indicate that it can parse multiple rules when FILTRULE_WORD_SPLIT is specified). - In preparation for rule prefixes containing information beyond the rflags, change the code to pass around a full "template" filter_rule instead of just rflags. Callers of parse_filter_{str,file} that want to specify only rflags can use rule_template(rflags) . - Remove the MODIFIERS_* strings and instead hand-code the condition under which each modifier is valid. This should make it easier to see that the conditions are correct. - Tighten up default modifiers on merge rules: - Disallow "!" because it isn't useful. - If the merge rule specifies a side via "s" or "r", the rules in the file cannot also specify a side via "s", "r", "hide", etc. [Patch was changed by Wayne a bit prior to application.]
* Improved a couple variable names.Wayne Davison2009-05-231-54/+42
|
* Use typedefs for the filter structures.Wayne Davison2009-05-231-36/+36
|
* Change filter MATCHFLGs to FILTRULEs.Wayne Davison2009-05-231-138/+138
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Don't define an array with no size.Wayne Davison2008-09-011-2/+2
|
* A little tidying up to follow my preferred style.Wayne Davison2008-09-011-14/+23
|
* Several fixes for merge file handling:Matt McCutchen2008-09-011-28/+112
| | | | | | | | | | | | | | | - Free a mergelist's parent_dirscanned filters the last time it is popped or as soon as the filters are discarded due to the "n" modifier. Aside from not leaking memory, this is needed to clean up any mergelists defined during the parent_dirscan to avoid crashing by trying to restore nonexistent state for them in pop_local_filters. - Make push_local_filters save the current mergelist_cnt, and make pop_local_filters assert that it has the correct number of mergelists before restoring their state. - Assert that mergelists get deactivated in strict LIFO order to catch any glitches as soon as they happen. Free linked lists of filters in reverse order to make that the case. - Add a bunch of mergelist-related debug output (--debug=filter2).
* Output an FERROR* for a general io_error, and an FWARNING for otherWayne Davison2008-07-311-1/+1
| | | | io_error flags.
* Include the array-size in array externs so that IBM's code-checkerWayne Davison2008-07-201-1/+1
| | | | can do more checking for us.
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-7/+6
| | | | fine-grained output control (in addition to the coarse -v).
* Improved a length check in parse_merge_name().Wayne Davison2008-03-261-3/+4
|
* Don't send daemon-config filter-action messages back to the user.Wayne Davison2008-03-241-8/+9
|
* Added XFLG_DIR2WILD3 flag that the daemon uses to transform anyWayne Davison2008-03-221-2/+17
| | | | config-file dir/ exclude rule into a dir/*** rule.
* A couple fixes in add_rule() for XFLG_ABS_IF_SLASH:Wayne Davison2008-03-221-12/+21
| | | | | | | | - Remove the trailing slash earlier, so that it doesn't affect the XFLG_ABS_IF_SLASH check. - Count the slashes earlier so that the XFLG_ABS_IF_SLASH can use it instead of using a strchr() all that could scan past the end of the input.
* Change ex_len to pre_len in add_rule().Wayne Davison2008-03-221-9/+9
|
* Some improvements to the file-name cleaning code:Wayne Davison2008-03-201-1/+1
| | | | | | | | | - Removed the CFN_KEEP_LEADING_DOT_DIR flag for clean_fname(). - Explicitly add an implied dot-dir to the transfer rather than keeping a leading a "./" prefix as a part of a relative pathname. - Added the CFN_KEEP_DOT_DIRS flag for clean_fname(). - Added the SP_KEEP_DOT_DIRS flag for sanitize_path(). - Call clean_fname() a couple more times.
* Changed the name of the server_filter_list to beWayne Davison2008-03-201-3/+3
| | | | daemon_filter_list, for improved clarity.
* Added "const" to a couple more char * args.Wayne Davison2008-03-161-3/+3
|
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Got rid of the unused symlink parameter to sanitize_path().Wayne Davison2007-11-201-1/+1
|
* Including my extern-squishing script, which just found anWayne Davison2007-11-111-1/+0
| | | | extraneous extern in exclude.c.
* Call clean_fname() with new flag arg.Wayne Davison2007-10-311-5/+5
|
* Fixed problem with anchored filter and an absoluteWayne Davison2007-10-261-5/+4
| | | | source path with --relative.
* Added .git/ to "CVS" excludes.Wayne Davison2007-10-251-1/+1
|
* Got rid of some old exclude trickery for --list-only w/o -r.Wayne Davison2007-10-071-6/+0
|
* Use new0() function instead of new() followed by memset().Wayne Davison2007-09-031-2/+1
|
* Avoid a crash if pop_local_filters() has some pointer gaps.Wayne Davison2007-08-041-10/+14
|
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* New support function: change_local_filter_dir().Wayne Davison2006-12-281-0/+24
|
* Don't include MATCHFLG_PERISHABLE in CVS-exclude handling unlessWayne Davison2006-12-281-2/+4
| | | | we're talking protocol 30 or above.
* The exclude code wasn't sending the MATCHFLG_NEGATE (!) char to theWayne Davison2006-11-211-0/+2
| | | | other side.
* - Added the 'p' (perishable) flag to the filter rules, as suggestedWayne Davison2006-11-111-3/+15
| | | | | | | by Matt. - If ignore_perishable is set, we ignore all perishable rules. - Mark all default-cvsignore rules as perishable (e.g. excludes such as *.o CVS .svn/ will not prevent a directory from being deleted).
* Tweaked an exit_cleanup() value.Wayne Davison2006-11-111-1/+1
|
* Cast pat_len to an int when using it as a field width.Wayne Davison2006-10-131-1/+1
|
* Fixed an infinite loop in parse_rule() when a filter rule is tooWayne Davison2006-10-131-8/+8
| | | | | longer for MAXPATHLEN. Also fixed a couple spots nearby that were erroneously treating pointer "cp" as a '\0'-terminated string.
* Some minor improvements to parse_merge_name().Wayne Davison2006-10-121-12/+11
|
* The --delete-excluded code now also drops any merge file that wasWayne Davison2006-09-091-6/+12
| | | | | marked as MATCHFLG_NO_PREFIXES because they can only contain include/exclude rules.
* Matt pointed out that the code was not properly dropping excludesWayne Davison2006-09-011-0/+11
| | | | | that were read from a per-dir merge file when --delete-excluded is enabled. This additional code fixes that.
* Make sure that --delete-excluded does not elide a per-dir mergeWayne Davison2006-08-311-1/+2
| | | | filter file, while still dumping the .cvsignore file from -C.
* Fixed an exclude bug with --relative excluding "/".Wayne Davison2006-08-121-2/+2
|
* Added ".bzr/" to the default CVS exclusions.Wayne Davison2006-05-111-1/+1
|