jj-tag(1)

πŸ“¦
version 0.46.0 Β· 2 versions
, in arch rolling, nixpkgs unstable, ubuntu stonking

πŸ’– jj-tag(1) πŸ’–

okay bestie, welcome to the General Commands Manual era, this is jj-tag and she is HERE to manage your tags πŸ’…


✨ NAME ✨

jj-tag β€” manage tags 🏷️


🌸 SYNOPSIS 🌸

jj tag [-R|--repository] [--ignore-working-copy]
[--no-integrate-operation] [--ignore-immutable] [--at-operation]
[--debug] [--color] [--quiet] [--no-pager] [--config] [--config-file]
[-h|--help] <subcommands>

πŸ¦‹ DESCRIPTION πŸ¦‹

Manage tags. that's it, that's the whole vibe πŸŽ€


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” prints the help. and if you want the short version, hit -h and she'll give you a lil summary instead of the whole essay 🫢

πŸ‘‘ GLOBAL OPTIONS πŸ‘‘

these ones are universal, they work everywhere, main character energy fr fr 🌈

  • -R, --repository <REPOSITORY> β€” the path to the repo you wanna operate on.

by default, Jujutsu goes hunting for the closest .jj/ directory in an ancestor of wherever you're currently standing (your cwd). so like, it'll find it for you, no stress πŸ’–

  • --ignore-working-copy β€” don't snapshot the working copy, and don't update it either πŸ™ˆ

so normally, Jujutsu snapshots the working copy at the start of every single command. and then at the end of the command, it updates it too β€” but only if the command actually modified the working-copy commit (@). if you wanna skip the snapshotting and just look at a possibly stale working-copy commit instead, this is your flag. lowkey useful in a command prompt, especially if you've got another process committing the working copy behind your back 😭

heads up: loading the repo at a specific operation with --at-operation implies --ignore-working-copy. it's automatic bestie ✨
  • --no-integrate-operation β€” run the command as usual, but don't integrate any operations πŸ’€

when you pass this, the operations still get created like normal β€” they just don't get integrated into the operation log. the working copy also doesn't get updated.

the command will print out the resulting operation ID. you can feed that to like jj --at-op to peek at the resulting repo state, or hand it to jj op restore to restore the repo to that state. you can also pass the ID to jj op integrate to integrate the operation.

⚠️ important: this does not stop side effects outside the repo. for example, jj git push --no-integrate-operation will still perform the push. no cap, the push is happening πŸ”₯
  • --ignore-immutable β€” allow rewriting immutable commits, we're breaking the rules today 😈

by default, Jujutsu prevents rewriting commits in the configured set of immutable commits. this option disables that check and lets you rewrite any commit except the root commit.

note: this option only affects the check itself. it does not affect the immutable_heads() revset or the immutable template keyword. those stay exactly as they are πŸ’…
  • --at-operation <AT_OPERATION> β€” the operation to load the repo at βͺ

by default, Jujutsu loads the repo at the most recent operation, or at the merge of the divergent operations if there are any.

you can use --at-op=<operation ID> to see what the repo looked like at an earlier operation. for example jj --at-op=<operation ID> st will show you what jj st would have shown you when the given operation had just finished. --at-op=@ is pretty much the same as the default, except that divergent operations will never get merged.

use jj op log to find the operation ID you want. any unambiguous prefix of the operation ID is enough, don't stress about typing the whole thing ✨

when you're loading the repo at an earlier operation, the working copy gets ignored, as if --ignore-working-copy had been specified.

it is possible to run mutating commands when loading the repo at an earlier operation. doing that is equivalent to having run concurrent commands starting at the earlier operation. there's rarely a reason to do that, but it is possible. chaotic behavior, honestly πŸŒ€

  • --debug β€” enable debug logging πŸ›
  • --color <WHEN> β€” when to colorize the output 🎨

possible values:

  • always
  • never
  • debug
  • auto
  • --quiet β€” silence non-primary command output 🀫

for example, jj file list will still list files, but it won't tell you if the working copy was snapshotted or if descendants were rebased.

warnings and errors will still be printed. those are not getting silenced, periodt πŸ“’
  • --no-pager β€” disable the pager 🚫
  • --config <NAME=VALUE> β€” additional configuration options (can be repeated) βš™οΈ

the name should be specified as TOML dotted keys. the value should be specified as a TOML expression. if a string value isn't enclosed by any TOML constructs (such as array notation), the quotes can be omitted.

  • --config-file <PATH> β€” additional configuration files (can be repeated) πŸ“‚

πŸŽ€ SUBCOMMANDS πŸŽ€

the whole squad, here they are 🫢


and that's the page bestie!! source is tag, version/footer situation is jj-tag(1) β€” she's iconic, she's giving manual page, and she ate πŸ’–βœ¨ no notes. go forth and manage those tags πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from