News for hackers. Stuff that matters.
Re:Dura is a background process that watches your Git reposi... by sahkopoyta on Monday January 03, 2022 @01:48PM (#29784594)
Seems like a nice tool, but if you really used git, I don't really see how this situation described at the readme.md could happen :-)

  you think you just lost days of work
Re:Dura is a background process that watches your Git reposi... by masklinn on Monday January 03, 2022 @02:06PM (#29784861)
> if you really used git

That really doesn't mean anything.

> I don't really see how this situation described at the readme.md could happen :-)

Start working on a big and complicated refactoring, don't commit because everything's broken and in flux, run the wrong command and lose your changes-in-flight somehow (reset the working copy, revert a file, overwrite a file incorrectly, ...).

Re:Dura is a background process that watches your Git reposi... by pcthrowaway on Monday January 03, 2022 @03:24PM (#29786267)
Yep, this. Exactly like the docs say, you could recover entire directories after an accidental reset, or just avoid having to ctrl+z in your file 40 times.

I've been fortunate to "only" lose about 2-3 hours of work to mis-typing in git in the last year. It could have been 2 days or so if I was unlucky. For 2-3 hours of work it's maybe not worth installing this tool, but I'm definitely thinking about it because it's so much better than potentially losing 2 days.

"Commit often" doesn't work for me a lot of the time, I'd spend up spending almost as much time rebasing and patch committing as I would in dev/refactor. When you're exploring you try 5 things for every one that works, and it's not apparent til later which thing you want to keep. Committing junk every 10 minutes and then committing a rollback for most of it isn't ideal.

Re:Dura is a background process that watches your Git reposi... by masklinn on Monday January 03, 2022 @03:36PM (#29786467)
> Yep, this. Exactly like the docs say, you could recover entire directories after an accidental reset, or just avoid having to ctrl+z in your file 40 times.

I've definitely wished IntelliJ's local history could work across multiple files a few times, it did let me recover from fuckups more than once but having to find and revert each file individually was not fun.

Re:Dura is a background process that watches your Git reposi... by can16358p on Monday January 03, 2022 @01:54PM (#29784677)
Not for you and me but might save hours/days of work for someone (including me-a-few-years-ago) who is lazy/forgetful about their commits.
Re:Dura is a background process that watches your Git reposi... by sahkopoyta on Monday January 03, 2022 @01:58PM (#29784741)
"including me-a-few-years-ago". This also applies to me, sometimes you have to learn the hard way. I would say that in this scenario addressing the root cause is better than treating the symptoms.
Re:Dura is a background process that watches your Git reposi... by dbalatero on Monday January 03, 2022 @01:55PM (#29784704)
Any unstaged work is getting committed in the background, so if you lose unstaged work accidentally, it will be available on that dura branch.