LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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]
copy
The same using the executable alias
$ jj file chmod executable [path/to/file]
copy
Make a file non-executable (normal)
$ jj file chmod n [path/to/file]
copy
The same using the normal alias
$ jj file chmod normal [path/to/file]
copy
Make several files executable
$ jj file chmod x [path/to/file1] [path/to/file2]
copy
Change the bit in a specific revision
$ jj file chmod -r [revision] x [path/to/file]
copy

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
copy
sudo apk add jujutsu
copy
sudo zypper install jujutsu
copy
brew install jujutsu
copy
nix profile install nixpkgs#jujutsu
copy

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

RESOURCES

Copied to clipboard
Kai