News for hackers. Stuff that matters.
Re:Jujutsu for Everyone by zamalek on Sunday August 31, 2025 @02:20PM (#45085537)
But that would undo what I've done, right? I Wang to keep the changes but only diff them against what I've pushed.
Re:Jujutsu for Everyone by dzaima on Sunday August 31, 2025 @02:48PM (#45085852)
You can do a `jj new; jj restore --restore-descendants -f commit_id -t @-` with a commit id (not change id!) from the evolog to "inject" a snapshot from the evolog below your current @, leaving the file state at @ (and everywhere else in the log) intact.

Or if you have a commit ID (or otherwise revset; so a "main@origin" or whatever would work) of a specific commit that you want already, can use that instead of course too.

Re:Jujutsu for Everyone by _bent on Sunday August 31, 2025 @03:18PM (#45086170)
i guess you can run `jj duplicate` before?