Displaying 5 results from an estimated 5 matches for "check_one_exclude".
2003 Feb 16
1
rsync-exclude.patch.
...recedence: use the most local and most recent matching pattern,
+ in this order: FILE, .cvsignore, --exclude */
+
+ if (recur_local_exclude_list) {
+ for (n=0; recur_local_exclude_list[n]; n++) ;
+ for (n--; n >= 0; n--) {
+ ent = recur_local_exclude_list[n];
if (check_one_exclude(name, ent, st)) {
- report_exclude_result(name, ent, st);
+ report_exclude_result(name, ent, "rsync", st);
return !ent->include;
}
}
}
if (local_exclude_list) {
- for (n=...
2002 Nov 11
0
Regular Expression support
.../')) {
ret->local = 1;
}
+ }
return ret;
}
@@ -85,15 +95,86 @@
free(ex->pattern);
memset(ex,0,sizeof(*ex));
free(ex);
+ if(ex->regexp){
+ regfree(ex->regexp);
+ free(ex->regexp);
+ }
}
+#include <regex.h>
static int check_one_exclude(char *name, struct exclude_struct *ex,
STRUCT_STAT *st)
{
char *p;
int match_start=0;
char *pattern = ex->pattern;
+// return 1; <-- MEANS EXCLUDE
+printf("NAME=%s, %d %d\n", name, ex->use_real_regexp, S_ISDIR(st->st_mode));
+ if (ex...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
This is a patch to add an --rsync-exclude option to rsync-2.5.6cvs.
File names in .rsync- (or .rsync+) are excluded (or included) from the file
lists associated with the current directory and all of its subdirectories.
This has advantages over --cvs-exclude for backing up large file systems
since the .cvsignore files only apply to the current directory:
unless the .cvsignore restrictions apply
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
...ame, is_dir))
return 1;
...
If you look at the equivalent section of code in 2.5.7, the behaviour is
different (in the case of an included pattern, local_exclude list is not
examined):
if (exclude_list) {
for (n=0; exclude_list[n]; n++) {
ent = exclude_list[n];
if (check_one_exclude(name, ent, st)) {
report_exclude_result(name, ent, st);
return !ent->include;
}
}
}
if (local_exclude_list) {
for (n=0; local_exclude_list[n]; n++) {
ent = local_exclude_list[n];
if (check...
2001 Sep 30
0
Exclude sets generated with -C
...les under CVS control (eg directories called "core" or
+ "tags") that should not be excluded if cvs_exclude is set. CVS
+ controlled files and directories will be set in
+ local_exclude_list. */
+ if (cvs_exclude) {
+ for (n=0; global_cvs_exclude_list[n]; n++)
+ if (check_one_exclude(name,
+ global_cvs_exclude_list[n],st))
+ return !global_cvs_exclude_list[n]->include;
+ }
+
return 0;
}
@@ -319,16 +336,21 @@
return(t);
}
-
-void add_exclude_line(char *p)
+static void add_exclude_line_to_list(char *p,
+ struct exclude_struct ***list)
{
char...