Improved the debug string for the local_exclude_list.
[rsync/rsync.git] / exclude.c
index 81aaed9..1cea867 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -34,7 +34,7 @@ extern int recurse;
 extern char curr_dir[];
 
 struct exclude_list_struct exclude_list = { 0, 0, "" };
-struct exclude_list_struct local_exclude_list = { 0, 0, "local-cvsignore " };
+struct exclude_list_struct local_exclude_list = { 0, 0, "per-dir .cvsignore " };
 struct exclude_list_struct server_exclude_list = { 0, 0, "server " };
 char *exclude_path_prefix = NULL;
 
@@ -214,9 +214,8 @@ static void report_exclude_result(char const *name,
 
 
 /*
- * Return true if file NAME is defined to be excluded by the specified
- * exclude list.  Returns -1 for an exclude, 1 for an include, and 0 if
- * no match.
+ * Return -1 if file "name" is defined to be excluded by the specified
+ * exclude list, 1 if it is included, and 0 if it was not matched.
  */
 int check_exclude(struct exclude_list_struct *listp, char *name, int name_is_dir)
 {