Skip to content

Commit

Permalink
Make --delete-excluded work better with --filter=merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Davison committed Sep 15, 2011
1 parent 397fb1a commit 3417881
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions exclude.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,13 +1013,9 @@ static filter_rule *parse_rule_tok(const char **rulestr_ptr,
exit_cleanup(RERR_SYNTAX);
}

/* --delete-excluded turns an un-modified include/exclude into a
* sender-side rule. We also affect per-dir merge files that take
* no prefixes as a simple optimization. */
/* --delete-excluded turns an un-modified include/exclude into a sender-side rule. */
if (delete_excluded
&& !(rule->rflags & FILTRULES_SIDES)
&& (!(rule->rflags & FILTRULE_PERDIR_MERGE)
|| rule->rflags & FILTRULE_NO_PREFIXES))
&& !(rule->rflags & (FILTRULES_SIDES|FILTRULE_MERGE_FILE|FILTRULE_PERDIR_MERGE)))
rule->rflags |= FILTRULE_SENDER_SIDE;

*pat_ptr = (const char *)s;
Expand Down

0 comments on commit 3417881

Please sign in to comment.