Efficient repo status (or, jj status
on a large monorepo) (or, gitstatus equivalent for jj
?)
#83
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure if Funny enough, I just ran Maybe |
Beta Was this translation helpful? Give feedback.
-
As @arxanas said, my plan has been to use watchman for large repos. That would mean that the working copy commit would always be up to date. You can get similar behavior already. First run Also, everything is slower when you run in a working copy colocated with git because JJ does automatic imports and exports on every command in that case. I'm on mobile right now but I'll give a longer answer in a few days. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I work with
nixpkgs
a lot, a huge monorepo of Linux/darwin/etc packages. It's large enough that it makes any inefficiencies in tooling quickly noticeable. For example, once one usespowerlevel10k
or otherwise usesgitstatus
, any other shell prompt becomes painfully slow to use. I'm actually trying my hand at adding support forgitstatus(d)
tostarship
(github) and it occurred to me that I hadn't triedjj
with nixpkgs yet.So, I gave it a shot:
Further, I think I found a bug:
Observations:
jj status
(1.72 seconds) is quite a bit slower thangit status
(0.07 seconds)gitstatus
as it's seems pretty specifically tied to git's stateQuestions:
gitstatus
forjj
?jj
enlistments, maybe background optimistically sync with a remote, monitor/allow querying their status, maybe? (I imagine this as an external tool that usesjj
as a library.)Beta Was this translation helpful? Give feedback.
All reactions