programmatic status output (json?) (akin to git porcelain)? #103
Replies: 3 comments 5 replies
-
Mercurial has something called called which I hope to copy to The library is probably stable enough that it won't be much of an issue to use it. I suppose I'd have to release a new version to crates.io then, unless you're okay with pointing to a specific commit in this repo. However, the biggest drawback of using the library is probably that it would not be upgraded at the same time as the So I would probably parse the FYI, what I miss most from
So keep that in mind when you decide whether to switch. I usually fall back to GitHub's UI for those features for now. You can also do things like |
Beta Was this translation helpful? Give feedback.
-
I'm looking into starship custom https://starship.rs/config/#custom-commands I was wondering if I can pass either a template into If I could do that and combine it with a template on the log, I think the custom command could be very useful already |
Beta Was this translation helpful? Give feedback.
-
Is there any update on something like |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am playing with
starship-rs
and trying to addgitstatus
support. But also, I could see myself moving all of my git usage tojj
, and the model of updating--no-commit-working-copy
means that getting status fromjj
can be very fast without needing the complexity ofgitstatus/gitstatusd
.So, I'm considering just jumping to implementing
jj
support in starship instead.Question: should I just pull in
jj
's lib via Rust? Is it (going to be) stable enough to do start down this path?Or should I try to parse
jj status --no-commit-working-copy
or is there room for ajj status --no-commit-working-copy --{tsv|json}
to output programmatic status information? Or maybe thejj status
output is rich/simple/fixed enough that I can just parse the lines of it directly?Beta Was this translation helpful? Give feedback.
All reactions