bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Always ignore CVSADM


From: Pavel Roskin
Subject: [PATCH] Always ignore CVSADM
Date: Wed, 7 Mar 2001 16:47:14 -0500 (EST)

Hello!

I believe that CVS should always ignore its admin files, even if `-I!' has
been specified.

Note that it doesn't mean that `CVS' should be removed from the default
ignore list. Someone may define CVSADM to a value other than "CVS", and
then `CVS' directories should be still ignored unless `-I!' is used.

ChangeLog:
        * ignore.c (ignore_files): Ignore CVSADM (which is usually
        "CVS") even if `-I!' has been specified.

_____________________________
--- ignore.c
+++ ignore.c
@@ -458,7 +458,8 @@
     while ((dp = CVS_READDIR (dirp)) != NULL)
     {
        file = dp->d_name;
-       if (strcmp (file, ".") == 0 || strcmp (file, "..") == 0)
+       if (strcmp (file, ".") == 0 || strcmp (file, "..") == 0 ||
+                                      strcmp (file, CVSADM) == 0)
            goto continue_loop;
        if (findnode_fn (ilist, file) != NULL)
            goto continue_loop;
_____________________________

Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]