aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
authorJoeri Samson <joeri@samson-vanassche.be>2025-05-26 09:29:27 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2025-05-27 07:46:33 +0300
commit4e1cfd5af2111643480f8b84aebb2f5266bf89fb (patch)
treed5a4cb36525a5b62b74d3842ef01e60232d22ba2 /projectile.el
parent2018db10ad134759a439f769d3f006a31c89061a (diff)
vcs: Use template for jujutsu file listing
In jujutsu users can configure the default behaviour of `jj file list` so that it no longer puts out file names separated by newlines (which is the default behaviour). This means the output of `jj file list` can't be trusted to be stable. On the other hand the same mechanism allows you to output the files separated with a null byte without invoking `tr`, this has the additional benefit that filenames with newlines in them are now working.
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el
index 830de5c..ecd166c 100644
--- a/projectile.el
+++ b/projectile.el
@@ -757,7 +757,7 @@ Set to nil to disable listing submodules contents."
:group 'projectile
:type 'string)
-(defcustom projectile-jj-command "jj file list --no-pager . | tr '\\n' '\\0'"
+(defcustom projectile-jj-command "jj file list -T 'path ++ \"\\0\"' --no-pager ."
"Command used by projectile to get the files in a Jujutsu project."
:group 'projectile
:type 'string