News for hackers. Stuff that matters.
Re:Pen, a GPL Copilot for Emacs by exdsq on Friday July 02, 2021 @09:00AM (#27710927)
Side note but what is going on with this projects commits?
Re:Pen, a GPL Copilot for Emacs by adkadskhj on Friday July 02, 2021 @11:48AM (#27713037)
.. i wish you hadn't made me look. That is painful.
Re:Pen, a GPL Copilot for Emacs by mullikine on Wednesday July 14, 2021 @12:19AM (#27829679)
A prompt for touching up those commit messages would be awesome!
Re:Pen, a GPL Copilot for Emacs by jimsimmons on Friday July 02, 2021 @02:11PM (#27714804)
PyCharm has local history that tracks non commit diffs and it has saved my day many times
Re:Pen, a GPL Copilot for Emacs by sdesol on Friday July 02, 2021 @02:05PM (#27714726)
If you want to quickly iterate through the commits and changes, you can do so with this link:

https://public-001.gitsense.com/insights/github/repos?p=comm...

Click on a file to bring up the diffs browser.

Disclaimer: I'm the creator of the tool that I'm linking to.

Re:Pen, a GPL Copilot for Emacs by globular-toast on Friday July 02, 2021 @09:08AM (#27711011)
Looks like they are auto-generated on every save.
Re:Pen, a GPL Copilot for Emacs by simiones on Friday July 02, 2021 @11:36AM (#27712857)
Had a co-worker once whose commits in Perforce (where it's called "Submit") made us joke that he had probably bound Ctrl-S to "Submit". Apparently it wasn't as unlikely as we thought .
Re:Pen, a GPL Copilot for Emacs by fulafel on Friday July 02, 2021 @10:44AM (#27712154)
Interesting to see someone doing this, it often comes up that we should actually have more levels of version control granularity than merges and commits. Just need an application of AI to generate good commit messages here :)
Re:Pen, a GPL Copilot for Emacs by globular-toast on Friday July 02, 2021 @01:10PM (#27714128)
I use the "undo" functionality in my editor. In emacs it's a complete tree of changes so you can't really lose anything.
Re:Pen, a GPL Copilot for Emacs by fulafel on Friday July 02, 2021 @02:03PM (#27714694)
It's something but it's ephemeral and not shareable. You can't reconstruct how a piece of code got written weeks later, to eg recover some debug helpers you deleted without committing because you thought you were done with debugging it.

But thanks for the tip about Emacs undo tree, didn't know about that. With some add-ons you can apparently eg find undoable changes for only some region of a buffer, etc.

Re:Pen, a GPL Copilot for Emacs by karthink on Friday July 02, 2021 @08:32PM (#27718382)
> With some add-ons you can apparently eg find undoable changes for only some region of a buffer, etc.

This is built into Emacs (no add-ons needed). Calling undo with a region selected undoes changes only in that region.

Re:Pen, a GPL Copilot for Emacs by mssdvd on Friday July 02, 2021 @06:36PM (#27717748)
You can also setup undo-tree to show a diff for every change.
Re:Pen, a GPL Copilot for Emacs by tom_ on Friday July 02, 2021 @01:30PM (#27714355)
True, but that's no guarantee you'll ever be able to actually find it.
Re:Pen, a GPL Copilot for Emacs by exdsq on Friday July 02, 2021 @12:04PM (#27713267)
That could be interesting but the right structure (off the top of my head) would be a hierarchical layer - not this flat monstrosity!
Re:Pen, a GPL Copilot for Emacs by astrange on Friday July 02, 2021 @10:16PM (#27718844)
I actually disagree with this because I think you should try to have the project even vaguely work at each commit, so "git bisect" will work. But maybe each commit could be a log of keystrokes instead of a text diff.
Re:Pen, a GPL Copilot for Emacs by lordgrenville on Friday July 02, 2021 @10:19AM (#27711836)
What a terrifying way to work!
Re:Pen, a GPL Copilot for Emacs by Kiro on Friday July 02, 2021 @06:09PM (#27717564)
Why? I also use commit and push as my save with nonsense commit messages. I can't trust that my computer is still booting up tomorrow.
Re:Pen, a GPL Copilot for Emacs by IshKebab on Friday July 02, 2021 @03:25PM (#27715731)
For single author projects it's reasonable.