From: Eric S. Raymond Date: Mon, 20 Sep 2004 05:05:35 +0000 (+0000) Subject: Ignore .svn files. X-Git-Tag: 2.6~2 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=b2b4539a94939b3052f94415acbf5cec5209f9b7;p=comparator.git Ignore .svn files. --- diff --git a/shredtree.c b/shredtree.c index f061520..11c75fe 100644 --- a/shredtree.c +++ b/shredtree.c @@ -42,7 +42,7 @@ static int file_count; static int eligible(const char *file) /* is the specified file eligible to be compared? */ { - if (strstr(file, "CVS") || strstr(file,"RCS") || strstr(file,"SCCS")) + if (strstr(file, "CVS") || strstr(file,"RCS") || strstr(file,"SCCS") || strstr(file, ".svn")) return(0); /* fast check for the most common suffixes */ #define endswith(suff) !strcmp(suff, file + strlen(file) - strlen(suff))