News for hackers. Stuff that matters.
Re:Git is too hard by yencabulator on Tuesday November 17, 2020 @06:08PM (#25131144)
> In Git tho the staging area is a lie. It encourages you commit half-truths. What I'd really want is to be able to enter a commit mode where the on-disk and staging area roles are flipped.

https://github.com/tv42/staged does something like that by writing the staged content to a temp dir.

(It has some smarts for Go GOPATH adjusting on top, but might not do things right with modules, at this time.)

Re:Git is too hard by magicalhippo on Wednesday November 18, 2020 @10:32AM (#25137853)
Thinking about it, I guess it should be possible to flip this around by using a temporary local branch. Commit everything there, then cherry-pick into repo dir and commit proper.

Once done delete temp branch and push.