branch: externals/vc-jj
commit a4b8ef445f23de32a091d640b64006fe286e742b
Author: Kristoffer Balintona <[email protected]>
Commit: Kristoffer Balintona <[email protected]>

    Implement the find-ignore-file VC method
    
    Fixes #154
---
 vc-jj.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/vc-jj.el b/vc-jj.el
index 41e8888ac2..00e442af19 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -1230,6 +1230,13 @@ For jj, modify `.gitignore' and call `jj untrack' or `jj 
track'."
 
 ;;;; find-ignore-file
 
+(defun vc-jj-find-ignore-file (file)
+  "Return the jj ignore file that controls FILE."
+  ;; Currently, Jujutsu uses .gitignore files, even for non-colocated
+  ;; repos.  See
+  ;; https://docs.jj-vcs.dev/latest/working-copy/#ignored-files
+  (expand-file-name ".gitignore" (vc-jj-root file)))
+
 ;;;; previous-revision
 
 (defun vc-jj-previous-revision (file rev)

Reply via email to