LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jj-file

inspects and manages files in a Jujutsu repository

TLDR

List files tracked in the working copy
$ jj file list
copy
Print a file from the working copy
$ jj file show [path/to/file]
copy
Search tracked files for a pattern
$ jj file search -p "[pattern]"
copy
Annotate a file line by line (blame)
$ jj file annotate [path/to/file]
copy
Track paths that auto-track skipped
$ jj file track [path/to/file]
copy
Stop tracking ignored paths
$ jj file untrack [path/to/file]
copy
Make a file executable in the working copy
$ jj file chmod x [path/to/file]
copy

SYNOPSIS

jj file subcommand [options]

DESCRIPTION

jj file groups file operations in a Jujutsu repository: listing, showing, searching, annotating, tracking, and changing the executable bit. Most subcommands take a fileset and default to the working-copy commit (@). Use -r / --revision on annotate, chmod, list, search, and show to operate on another revision.Unlike Git, the working copy is a first-class commit, so these commands read and update that commit rather than an index. New files are tracked automatically unless snapshot.auto-track is narrowed; track and untrack then become the manual controls.

PARAMETERS

annotate PATH

Show the source change for each line of a file.
chmod MODE FILESETS...
Set or clear the executable bit. MODE is x (executable) or n (non-executable).
list [FILESETS...]
List files in a revision (default: working-copy commit @).
search --pattern PATTERN [FILESETS...]
Search file contents for a string pattern.
show FILESETS...
Print file contents from a revision.
track FILESETS...
Start tracking specified paths in the working copy.
untrack FILESETS...
Stop tracking specified paths. They must already be ignored.

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. untrack only accepts paths that are already ignored (for example by `.gitignore`). search is an early command and does not search files concurrently. Template syntax is Jujutsu-specific; see `jj help -k templates`.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid