summaryrefslogtreecommitdiff
path: root/exclude.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Use the new calling syntax for sanitize_path().Wayne Davison2006-05-031-1/+1
|
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-12/+9
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Use the regular delete* vars instead of the saw_delete* varsWayne Davison2006-03-281-4/+2
| | | | (which are no longer around).
* Fixed a problem when copying an absolute source path withWayne Davison2006-03-131-1/+1
| | | | the --relative option enabled.
* - We need to send exclude info from the client to a server-receiverWayne Davison2006-01-281-9/+13
| | | | | | | when --prune-empty-dirs was specified. - Changed the output of debug include/exclude/show/hide/risk/protect messages to use the appropriate filter terminology instead of always using the (potentially unclear) include/exclude terms.
* Use the new saw_delete* variables to ensure that the server sideWayne Davison2006-01-211-2/+4
| | | | always reads the exclude information when it is present.
* Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison2006-01-131-5/+4
|
* We need to call clearerr() when getc() returns EOF with errno == EINTR.Wayne Davison2006-01-061-1/+3
|
* We use the new wildmatch_array() and litmatch_array() functions toWayne Davison2006-01-021-37/+41
| | | | | | | | make our include/exclude code easier to read and maintain, and to eliminate a buffer copy when handling an absolute-path pattern (which eliminated the full_name[] buffer). Also added handling for the new MATCHFLG_WILD3_SUFFIX define that allows a string that ends with "dir/***" to match the "dir" as well as its contents.
* - Renamed match_start -> anchored_match.Wayne Davison2005-12-241-11/+11
| | | | | - Twiddled one comment and added another. - Twiddled the placement of two else statements.
* Tweaked the debug output for cvs_filter_list and server_filter_list.Wayne Davison2005-12-171-2/+2
|
* Support new XFLG_ABS_IF_SLASH flag.Wayne Davison2005-10-071-5/+9
|
* Really fix '!' in a .cvsignore file this time.Wayne Davison2005-09-161-1/+2
|
* Use BIGPATHBUFLEN for the length of two line buffers.Wayne Davison2005-07-291-2/+2
|
* Changed overflow() to overflow_exit().Wayne Davison2005-07-071-1/+1
|