News for hackers. Stuff that matters.
Re:Jujutsu for Busy Devs by palata on Tuesday July 22, 2025 @10:02AM (#44647032)
> to reset or view the repo at a previous state

What about `git reflog`?

Re:Jujutsu for Busy Devs by Zambyte on Tuesday July 22, 2025 @10:06AM (#44647082)
That lets you see previously checked out revisions. Jujutsu keeps track of all previous repo state. In git, you can pull a new remote branch, delete that branch, and push the deletion. If you want to get that branch back, git reflog will only save you if you checked out that commit. If you didn't, you're SOL. Jujutsu will let you undo the delete operation, restore the repo to a state where the branch existed, or view the repo at a state where the branch existed, and create a new branch at the same revision that the old branch was before it was deleted.
Re:Jujutsu for Busy Devs by 0points on Tuesday July 22, 2025 @12:10PM (#44649091)
That might be cool, actually.

FWIW, I cheated on a previous job for months by working 10% or so, then faking git commit data to spread it out across the week before sending a PR.

Thank you "git commit --amend --no-edit --date xxx"

Re:Jujutsu for Busy Devs by palata on Tuesday July 22, 2025 @10:39AM (#44647472)
This is interesting, thanks!
Re:Jujutsu for Busy Devs by Moomoomoo309 on Tuesday July 22, 2025 @01:17PM (#44650274)
What if you commit secrets to the repo by accident?
Re:Jujutsu for Busy Devs by Zambyte on Tuesday July 22, 2025 @02:30PM (#44651174)
Jujutsu repos only exists locally. There are no Jujutsu remotes, only git remotes. Repo properties unique to Jujutsu (repo history, stable revision IDs) are not pushed to git remotes.
Re:Jujutsu for Busy Devs by gkbrk on Tuesday July 22, 2025 @01:18PM (#44650295)
Just edit it out and don't push it to upstream?