-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Support passing template to jj show
command
#2969
Comments
There's |
Thank you! I haven't thought about it :) I managed it to work using |
Just in case keep in mind that that means every prompt invocation also snapshots the repo, which sometimes could be bad, potentially - say you have a gigabyte of logs temporarily or something, although that one would be caught by the heuristic - and a bunch of operations for all the snapshots too For truly lightweight prompt (that will show that repo is stale until you run some jj command), a non-snapshotting status/diff are needed (there's a FR I made for that, hard to look up on mobile while typing this) |
Is your feature request related to a problem? Please describe.
I'd like to setup my shell prompt to print current state of a change – basic info like change id, empty or not, maybe description and a branch
Describe the solution you'd like
I'd like to pass a custom template from my jj config to
jj show
, for example ex:jj show -T prompt_show_oneline
Describe alternatives you've considered
One alternative is to use
jj log -T prompt_show_oneline | head -n1
but it prints leading symbols of a graph (dots and@
) that I don't need in this case.Additional context
–
The text was updated successfully, but these errors were encountered: