Replies: 2 comments
-
I think that If so, then I think the main thing you are asking for is some sort of an interactive UI for choosing a subset of revisions to squash from. I think this could be useful, though I'd make a syntax something like:
(I initially thought of WDYT? |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! Oh, I'm sorry. You are right. This is the mistake I made: # This does not work and exits with "Nothing changed."
jj squash --from younger..older --into x
# This works; didn't test this
jj squash --from older..younger --into x
# --interactive works here, too
jj squash -i --from older..younger --into x So, I just did not try to swap younger/older revisions. I just read the logs from top to bottom. Anyway, I'm very happy that this works. Squashing with Thank you very much for pointing this out to me. |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
squash --from --into
has been a real productivity boost. Thanks again.I would like to suggest the following extension for
squash
:to squash
rx
,yq
and all revisions 'between' them intox
, where-i
lets you choose the revisions interactively.My workflow:
Then I use
jj commit -m '..'
all the time and maybejj commit -m 'A sensible commit message'
in some cases.Finally I would love to use something like the command suggested above to get a single
featureXY
revision.(I know that
jj squash --from
now accepts multiple revisions: #3276.)This would also be a great option to squash all revisions of an unnamed working branch into a single revision.
What do you think? Is something similar already possible?
If this makes sense, I am happy to open an issue.
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions