@@ -332,6 +332,7 @@ See `projectile-register-project-type'."
332332 " _darcs" ; Darcs VCS root dir
333333 " .pijul" ; Pijul VCS root dir
334334 " .sl" ; Sapling VCS root dir
335+ " .jj" ; Jujutsu VCS root dir
335336 )
336337 " A list of files considered to mark the root of a project.
337338The bottommost (parentmost) match has precedence."
@@ -426,7 +427,8 @@ is set to `alien'."
426427 " ^\\ .ccls-cache$"
427428 " ^\\ .cache$"
428429 " ^\\ .clangd$"
429- " ^\\ .sl$" )
430+ " ^\\ .sl$"
431+ " ^\\ .jj$" )
430432 " A list of directories globally ignored by projectile.
431433Regular expressions can be used.
432434
@@ -725,6 +727,12 @@ Set to nil to disable listing submodules contents."
725727 :group 'projectile
726728 :type 'string )
727729
730+ (defcustom projectile-jj-command " jj files --no-pager ."
731+ " Command used by projectile to get the files in a Jujutsu project."
732+ :group 'projectile
733+ :type 'string
734+ :package-version '(projectile . " 2.9.0" ))
735+
728736(defcustom projectile-sapling-command " sl locate -0 -I ."
729737 " Command used by projectile to get the files in a Sapling project."
730738 :group 'projectile
@@ -1469,6 +1477,7 @@ Fallback to a generic command when not in a VCS-controlled project."
14691477 ('pijul projectile-pijul-command)
14701478 ('svn projectile-svn-command)
14711479 ('sapling projectile-sapling-command)
1480+ ('jj projectile-jj-command)
14721481 (_ projectile-generic-command)))
14731482
14741483(defun projectile-get-sub-projects-command (vcs )
@@ -3659,6 +3668,7 @@ the variable `projectile-project-root'."
36593668 ((projectile-file-exists-p (expand-file-name " .pijul" project-root)) 'pijul )
36603669 ((projectile-file-exists-p (expand-file-name " .svn" project-root)) 'svn )
36613670 ((projectile-file-exists-p (expand-file-name " .sl" project-root)) 'sapling )
3671+ ((projectile-file-exists-p (expand-file-name " .jj" project-root)) 'jj )
36623672 ; ; then we check if there's a VCS marker up the directory tree
36633673 ; ; that covers the case when a project is part of a multi-project repository
36643674 ; ; in those cases you can still the VCS to get a list of files for
@@ -3672,6 +3682,7 @@ the variable `projectile-project-root'."
36723682 ((projectile-locate-dominating-file project-root " .pijul" ) 'pijul )
36733683 ((projectile-locate-dominating-file project-root " .svn" ) 'svn )
36743684 ((projectile-locate-dominating-file project-root " .sl" ) 'sapling )
3685+ ((projectile-locate-dominating-file project-root " .jj" ) 'jj )
36753686 (t 'none )))
36763687
36773688(defun projectile--test-name-for-impl-name (impl-file-path )
0 commit comments