Tweaked the output a little.
[rsync/rsync.git] / exclude.c
index 1ed19dd..11b187c 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -1070,6 +1070,8 @@ char *get_rule_prefix(int match_flags, const char *pat, int for_xfer,
        else
                legal_len = 0;
 
+       if (match_flags & MATCHFLG_NEGATE)
+               *op++ = '!';
        if (match_flags & MATCHFLG_CVS_IGNORE)
                *op++ = 'C';
        else {