Replies: 5 comments 20 replies
-
I think I would like this. If nobody is against this do you think you’d be up for writing a patch? |
Beta Was this translation helpful? Give feedback.
-
While I do think that this is a nice improvement, you also could the fix root cause by implementing |
Beta Was this translation helpful? Give feedback.
-
Maybe this could be a |
Beta Was this translation helpful? Give feedback.
-
This is actually the default behavior for git-branchless! Therefore, I'll give an experience report on it. I implemented it because I noticed that I was constantly running
The most serious problem was the time that one of my coworkers tried to use git-branchless for a bunch of big in-memory rebases as part of automation, and then it hung at the end due to the implicit smartlog printing, and they had to turn it off to get the operation to complete 🤣.
One concrete problem is that it might consume all of the user's available terminal scrollback.
Lately, I notice that the output is quite unhelpful when the entire smartlog becomes unwieldy and the full output doesn't fit on my screen.
We would almost certainly want to make "reversing" the log output into a configuration option that's respected here.
There are some potential context-dependent hints we could surface.
Overall, my preference would be for opt-in configuration with clever hinting, or some other effective onboarding strategy. |
Beta Was this translation helpful? Give feedback.
-
There are a number of other commands like squash, duplicate, split, etc for which I also want to check the log/history to verify the outcome and my mental model of it. When doing git rebase -i, I have gotten used to immediately check the new history via FWIW, here is jj-fzf that shows a jj log, let's you filter by revset and supports squash/rebase/etc: |
Beta Was this translation helpful? Give feedback.
-
Every time I do a rebase, I immediately run
jj log
to verify that I got the result I was expecting.I think it would be nice if
jj rebase
did this automatically. It could just log the revset consisting of the base and the rebased commits. We could make this behaviour opt-out, or even opt-in if it's very controversial.As a matter of UX, it's nice to have feedback about the operations I perform. It gives me confidence in my use of the system. The "Rebased n commits" message is good, but I think additionally showing those commits, and the commit they were rebased onto, would be even better.
Beta Was this translation helpful? Give feedback.
All reactions