jj icon indicating copy to clipboard operation
jj copied to clipboard

FR: `--revisions` for `tag list`

Open Vampire opened this issue 2 months ago • 0 comments

Is your feature request related to a problem? Please describe. To see which bookmark a given revision is contained in, you can do

jj bookmark list --revisions 'zzzzzzzz::'

The same would be useful to find tags that contain a given revision.

Describe the solution you'd like

jj tag list --revisions 'zzzzzzzz::'

Describe alternatives you've considered

jj tag list --template "if (normal_target.contained_in(\"zzzzzzzz::\"), ($(jj --ignore-working-copy --quiet config get templates.tag_list)))"

Another variant I just came up with:

jj --config ui.log-synthetic-elided-nodes=false log --revisions 'tags() & zzzzzzzz::tags()' --template 'tags'

Vampire avatar Nov 03 '25 11:11 Vampire