logoalt Hacker News

dwattttt • today at 8:54 AM • 1 reply • view on HN

I have a good story around these features.

At the start of the day, I resumed working on a feature; there's no staging, so modifications I make are all stored as the current change.

Later that day I realised I needed to actually save the version of the feature that existed when I started work that morning.

So into the evolog I go (`jj evolog`). It's a record of all commits that a change has been; I could scroll back through the recorded changes, find the first change made that day, and then 'jj new' to create a change that represents that work.

It felt magical, to just be able to jump back to a project state that I didn't explicitly record, then save it.


Replies

zaphirplane • today at 11:43 AM

I don’t get the excitement, it looks a lot like branching off a commit

➕ show 1 reply