branch: elpa/projectile commit 4e1cfd5af2111643480f8b84aebb2f5266bf89fb Author: Joeri Samson <jo...@samson-vanassche.be> Commit: Bozhidar Batsov <bozhi...@batsov.dev>
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. --- projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projectile.el b/projectile.el index 830de5c179..ecd166c942 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