jj-root
print the current Jujutsu workspace root directory
TLDR
SYNOPSIS
jj root
DESCRIPTION
jj root prints the absolute path of the current workspace root: the directory that contains the working copy and the `.jj/` metadata. It is a shortcut for `jj workspace root` without extra flags.This is the Jujutsu counterpart of `git rev-parse --show-toplevel`. It is not the Git directory; for that path use jj git root (the workspace `.git` in a colocated repo, or the hidden Git store under `.jj` otherwise).`jj workspace root --name` can query another workspace attached to the same repo. That option is not available on the jj root shortcut.Like other jj commands, jj root snapshots the working copy unless you pass --ignore-working-copy. Shell prompts that only need the path typically use that flag, or skip the command entirely and look for a `.jj` directory while walking up from `$PWD`.
INSTALL
CAVEATS
Subcommand of jj. Fails outside a workspace. Does not accept --name; use jj workspace root for a named workspace. Do not confuse with jj git root.
SEE ALSO
jj(1), jj-workspace(1), jj-git-root(1), git-rev-parse(1)
