jj-file-show
prints file contents from a Jujutsu revision
TLDR
Print a file from the working copy
$ jj file show [path/to/file]
Print a file from a specific revision$ jj file show -r [revision] [path/to/file]
Print every file under a directory, recursively$ jj file show [path/to/directory]
Print file metadata with a custom template$ jj file show -T "[template]" [path/to/file]
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
sudo apk add jujutsu
sudo zypper install jujutsu
brew install jujutsu
nix profile install nixpkgs#jujutsu
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)
