From f3d209e5857d7c95be2ffa8c1a94b38e698f5c9b Mon Sep 17 00:00:00 2001 From: toastal Date: Thu, 18 Jul 2024 21:55:27 +0700 Subject: [PATCH] Basic Pijul support (ignoring VCS dir) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pijul is a decentralized version control system. Ignorefile use .ignore which use the same as the Git-branded, .gitignore fileā€¦ so more advanced support could be added. --- src/tup/pel_group.c | 2 ++ src/tup/server/fuse_fs.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/tup/pel_group.c b/src/tup/pel_group.c index e8a97250..73eb7b05 100644 --- a/src/tup/pel_group.c +++ b/src/tup/pel_group.c @@ -47,6 +47,8 @@ int pel_ignored(const char *path, int len) return 1; if(len == 4 && strncmp(path, ".svn", 4) == 0) return 1; + if(len == 6 && strncmp(path, ".pijul", 6) == 0) + return 1; if(len == 6 && strncmp(path, "_darcs", 6) == 0) return 1; if(len == 7 && strncmp(path, ".ccache", 7) == 0) diff --git a/src/tup/server/fuse_fs.c b/src/tup/server/fuse_fs.c index e5a7a175..64207529 100644 --- a/src/tup/server/fuse_fs.c +++ b/src/tup/server/fuse_fs.c @@ -101,6 +101,8 @@ static int is_hidden(const char *path) return 1; if(strstr(path, "/.bzr") != NULL) return 1; + if(strstr(path, "/.pijul") != NULL) + return 1; if(strstr(path, "/_darcs") != NULL) return 1; if(is_ccache_path(path))