logoalt Hacker News

VMGlast Tuesday at 12:15 PM4 repliesview on HN

... unless you actually want to edit a change!


Replies

throawayonthelast Tuesday at 12:19 PM

well, you can do jj new <revision>, make your edit, and then do jj squash which will add the changes to the prev revision

i do this for example when i want to see a specific edit highlighted in my editor, it's a nice workflow i think

show 1 reply
BeetleBlast Tuesday at 1:47 PM

I go back and forth between the two approaches, but because of the whole "accidentally made some temporary changes and now it's a pain to separate/undo them because not all changes were temporary", I also usually do a jj new and then jj squash.

arccylast Tuesday at 12:20 PM

still use new, and then squash your changes in. that way you can actually see what changes you made

incognito124last Tuesday at 12:24 PM

then you `new` & `squash` :)