LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jj-file-show

prints file contents from a Jujutsu revision

TLDR

Print a file from the working copy
$ jj file show [path/to/file]
copy
Print a file from a specific revision
$ jj file show -r [revision] [path/to/file]
copy
Print every file under a directory, recursively
$ jj file show [path/to/directory]
copy
Print file metadata with a custom template
$ jj file show -T "[template]" [path/to/file]
copy

SYNOPSIS

jj file show [options] filesets...

DESCRIPTION

jj file show prints the contents of files from a revision. Pass one or more filesets; if a path is a directory, every file under it is printed. Unlike jj show, which displays a change (description plus diff), this command dumps blob contents.Use -r to read a file as it existed in another commit. The default template for metadata is templates.file_show; override it with -T. See `jj help -k templates`.

PARAMETERS

FILESETS

Paths to print. Required. A directory is visited recursively.
-r, --revision REVSET
Revision to read (default: working-copy commit @).
-T, --template TEMPLATE
Render each file's metadata with a custom template. Keywords are the 0-argument methods of the TreeEntry type. Defaults to the templates.file_show setting.

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. At least one fileset is required. Template syntax is Jujutsu-specific.

SEE ALSO

jj-file(1), jj-show(1), jj-file-list(1), jj(1)

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