X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9dd891bb28f6cc558b87905f1adc5e3d4180b6b3..6dfb45bcdf7f40e970a7be7bb67a567dd1484744:/exclude.c diff --git a/exclude.c b/exclude.c index a9d32a3e..ffcd0a76 100644 --- a/exclude.c +++ b/exclude.c @@ -131,6 +131,11 @@ static void report_exclude_result(char const *name, /* If a trailing slash is present to match only directories, * then it is stripped out by make_exclude. So as a special * case we add it back in here. */ + + /* FIXME: At the moment if you don't specify --recursive, this + * seems to give messages like "excluding file + * mbpconfig/.Xresources because of pattern /*""/*", which is + * a bit confusing. See Rusty's gross hack below. */ if (verbose >= 2) rprintf(FINFO, "%s %s %s because of pattern %s%s\n", @@ -201,9 +206,11 @@ void add_exclude_list(const char *pattern, struct exclude_struct ***list, int in if (!*list || !((*list)[len] = make_exclude(pattern, include))) out_of_memory("add_exclude"); - if (verbose > 2) - rprintf(FINFO,"add_exclude(%s)\n",pattern); - + if (verbose > 2) { + rprintf(FINFO,"add_exclude(%s,%s)\n",pattern, + include ? "include" : "exclude"); + } + (*list)[len+1] = NULL; }