Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Darcs + Pijul support (ignoring VCS dirs); Direnv (separated) #503

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/tup/pel_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ 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)
return 1;
if(len == 7 && strncmp(path, ".direnv", 7) == 0)
return 1;
/* See also fuse_fs.c:is_hidden() */
return 0;
}
Expand Down Expand Up @@ -169,7 +175,7 @@ int get_path_elements(const char *path, struct pel_group *pg)
}

TAILQ_FOREACH(pel, &pg->path_list, list) {
if(pel->path[0] == '.') {
if(pel->path[0] == '.' || pel->path[0] == '_') {
if(pel->len == 2 && strncmp(pel->path, "..", 2) == 0) {
/* .. paths are ignored */
} else if(pel_ignored(pel->path, pel->len)) {
Expand Down
6 changes: 6 additions & 0 deletions src/tup/server/fuse_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ 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(strstr(path, "/.direnv") != NULL)
return 1;
if(is_ccache_path(path))
return 1;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion tup.1
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ Set to '1' to keep building as much as possible even if errors are encountered.
Set to '1' to track dependencies on files outside of the tup hierarchy. The default is '0', which only tracks dependencies within the tup hierarchy. For example, if you want all C files to be re-compiled when gcc is updated on your system, you should set this to '1'. In Linux and OSX, using full dependencies requires that the tup binary is suid as root so that it can run sub-processes in a chroot environment. Alternatively on Linux, if your kernel supports user namespaces, then you don't need to make the binary suid. Note that if this value is set to '1' from '0', tup will rebuild the entire project. Disabling this option when it was previously enabled does not require a full rebuild, but does take some time since the nodes representing external files are cleared out. NOTE: This does not currently work with ccache or other programs that may write to external files due to issues with locking. This may be fixed in the future.
.TP
.B updater.warnings (defaults to '1')
Set to '0' to disable warnings about writing to hidden files. Tup doesn't track files that are hidden. If a sub-process writes to a hidden file, then by default tup will display a warning that this file was created. By disabling this option, those warnings are not displayed. Hidden filenames (or directories) include: ., .., .tup, .git, .hg, .bzr, .svn.
Set to '0' to disable warnings about writing to hidden files. Tup doesn't track files that are hidden. If a sub-process writes to a hidden file, then by default tup will display a warning that this file was created. By disabling this option, those warnings are not displayed. Hidden filenames (or directories) include: ., .., .tup, .git, .hg, .bzr, .svn, .pijul, _darcs.
.TP
.B display.color (default 'auto')
Set to 'never' to disable ANSI escape codes for colored output, or 'always' to always use ANSI escape codes for colored output. The default is 'auto', which displays uses colored output if stdout is connected to a tty, and uses no colors otherwise (ie: if stdout is redirected to a file).
Expand Down