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

Allow hidden paths to be referenced #651

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions doorstop/core/vcs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def paths(self):
# Skip ignored paths
if self.ignored(relpath):
continue
# Skip hidden paths
if os.path.sep + "." in os.path.sep + relpath:
# Skip hidden paths according to settings definition
if not settings.ALLOW_HIDDEN_PATH_REFERENCES:
continue
self._path_cache.append((path, filename, relpath))
yield from self._path_cache
Expand Down
3 changes: 3 additions & 0 deletions doorstop/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
PLACEHOLDER = "..." # placeholder for new item UIDs on export/import
PLACEHOLDER_COUNT = 1 # number of placeholders to include on export

# VCS Behaviour
ALLOW_HIDDEN_PATH_REFERENCES=False

# Formatting settings
MAX_LINE_LENGTH = 79 # line length to trigger multiline on extended attributes

Expand Down
Loading