In short: jj util backend name loads the repo without snapshotting and prints the backend's
name(), the same string jj wrote to .jj/repo/store/type when the repo was created:
git for the Git backend, Simple for the simple backend.
The group is UtilBackendCommand, help text "Commands relating to
the backend used in the current repo". It is the Backend variant of UtilCommand
(source, dispatch). Its only subcommand
is cmd_util_backend_name, "Print the name of the backend used in
the current repo" (source).
1. Command-line surface
| Subcommand | Arguments | Meaning |
|---|---|---|
name | none | Prints the backend name and a newline to stdout (source). |
The global flags are on the CLI page.
3. End-to-end flow
4. Core architecture touchpoints
| Piece | Role here |
|---|---|
Backend::name | "A unique name that identifies this backend", written to .jj/repo/store/type at repo creation. More on the backends page. |
| Backend implementations | GitBackend::NAME = "git" (source), SimpleBackend::NAME = "Simple" (source), and the test-only SecretBackend::NAME = "secret" (source). Upstream's test checks the first two (test). |
| Working copy, operation log | Not touched: no snapshot and no transaction. |