jj-file-chmod
sets or removes the executable bit for paths in a Jujutsu repository
TLDR
Make a file executable in the working copy
$ jj file chmod x [path/to/file]
The same using the executable alias$ jj file chmod executable [path/to/file]
Make a file non-executable (normal)$ jj file chmod n [path/to/file]
The same using the normal alias$ jj file chmod normal [path/to/file]
Make several files executable$ jj file chmod x [path/to/file1] [path/to/file2]
Change the bit in a specific revision$ jj file chmod -r [revision] x [path/to/file]
SYNOPSIS
jj file chmod [-r revset] mode filesets...
DESCRIPTION
jj file chmod sets or clears the executable bit on paths in a Jujutsu repository. Unlike POSIX chmod, it also works on Windows, on conflicted files, and on arbitrary revisions, because it records the bit in the commit rather than only in the working-tree inode.The working copy is a first-class commit, so with no -r the change is applied to @. Pass -r to rewrite another revision (descendants are rebased as usual).
PARAMETERS
MODE
x (alias executable) sets the executable bit. n (alias normal) clears it.FILESETS
Paths whose executable bit should change. Required.-r, --revision REVSET
Revision to update (default: working-copy commit @).
INSTALL
sudo pacman -S jujutsu
sudo apk add jujutsu
sudo zypper install jujutsu
brew install jujutsu
nix profile install nixpkgs#jujutsu
CAVEATS
Subcommand of jj. Only the executable bit is changed; other Unix permission bits are not stored. Rewriting a revision other than @ rebases descendants.
SEE ALSO
jj-file(1), jj-file-list(1), chmod(1), git-update-index(1), jj(1)
