News for hackers. Stuff that matters.
Re:Ask HN: What's the worst piece of software you use everyday? by SiVal on Saturday July 11, 2020 @07:41PM (#23807209)
You don't need an extra cache level for that. If what you want is to accumulate "adds" one at a time into the cache to create one combined commit, you could just accumulate small commits until you had what you wanted, then merge the commits into one combined commit before pushing to the server.
Re:Ask HN: What's the worst piece of software you use everyday? by still_grokking on Saturday July 11, 2020 @07:46PM (#23807246)
Sure. And I was doing this.

But it requires a lot of additional ceremony—alone naming the intermediate steps… ◔_◔

Re:Ask HN: What's the worst piece of software you use everyday? by ptx on Saturday July 11, 2020 @08:01PM (#23807331)
Or just one commit and keep amending it.
Re:Ask HN: What's the worst piece of software you use everyday? by still_grokking on Saturday July 11, 2020 @08:34PM (#23807537)
This approach doesn't allow you to easily revert parts of your last change-set. Actually you can't even distinguish in the diff your last changes form all the other accumulated changes once the recent change-set was commited.
Re:Ask HN: What's the worst piece of software you use everyday? by smichel17 on Saturday July 11, 2020 @10:18PM (#23808155)
I don't follow. You could totally implement a staging area workflow by making a commit with the message "Staging Area", repeatedly amending it, and then finally giving it a real message when you're ready to commit "for real". The main thing you lose that way is the ability to push safely.