Skip to content

Conversation

@joeri
Copy link
Contributor

@joeri joeri commented May 26, 2025

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.

Replace this placeholder text with a summary of the changes in your PR.
The more detailed you are, the better.


Before submitting a PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

  • The commits are consistent with our contribution guidelines
  • You've added tests (if possible) to cover your change(s)
  • All tests are passing (eldev test)
  • The new code is not generating bytecode or M-x checkdoc warnings
  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the docs (when adding new project types, configuration options, commands, etc)

Thanks!

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.
@bbatsov bbatsov merged commit 4e1cfd5 into bbatsov:master May 27, 2025
4 of 5 checks passed
@bbatsov
Copy link
Owner

bbatsov commented May 27, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants