Skip to content

Commit

Permalink
Enable *respect-gitignore* by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jfaz1 committed Mar 1, 2025
1 parent e372c07 commit 7e58599
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/project.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
(find-root (parent-directory pathname) :recurse recurse :recursing t)
pathname)))))

(defvar *respect-gitignore* nil
(defvar *respect-gitignore* t
"If non-nil, project-find-file will respect .gitignore files.")

(defun git-repository-p (pathname)
Expand Down Expand Up @@ -177,7 +177,6 @@
(let* ((cwd (buffer-directory))
(project-root (find-root cwd))
(root (or project-root cwd))
(is-git-repo )
(filename (if (and *respect-gitignore* (git-repository-p root))
;; In a git repo and respecting gitignore, use git ls-files
(uiop:with-current-directory (root)
Expand Down

0 comments on commit 7e58599

Please sign in to comment.