News for hackers. Stuff that matters.
Re:Why SQLite Does Not Use Git by fulafel on Wednesday April 11, 2018 @11:25AM (#16812074)
Often you want to push changes to a remote, but not yet merge or PR them to upstream.

Keeping "local feature branches" just on your dev machine is bad for many many reasons:

- you want to encourage low barrier cooperation in your team -> sharing changes

- you want changes to the CI pipeline early so the potentially slow testing machinery works in parallel with the developer

- you want to keep the team up to date on what changes you make

- you don't want to lose work if the machine/OS dies, or the developer leaves/becomes sick/goes on a 4 week vacation during which they forget their disk crypto password

So, in practice you can try to use rebase opportunistically, when out of chance your WIP work is still unpushed because the change was only made very recently. This is error prone. Or you can rebase published branches explicitly, by destroying the original branches in the PR merge phase. But all this is big bother if the purpouse is to just beautify history and at the same time hide the real trial and error that went into making the changes.

Re:Why SQLite Does Not Use Git by yawaramin on Saturday April 14, 2018 @03:30PM (#16838982)
Did you notice that y2kenny was talking about how, if you use local feature branches, then the remote tracking branches make it really clear what's been published vs not? The implicit meaning is that we should use local feature branches but also publish them to the repo while we're working on them.

But maybe to you, 'publish' means 'publish to master'? In that case I can assure you, they are not necessarily the same thing. I regularly work on a local feature branch, publish that branch to the shared repo, rebase it on top of master, then force-push to the shared tracking branch. When I'm done I merge it into master and don't rebase master on top of anything.

Re:Why SQLite Does Not Use Git by y2kenny on Wednesday April 11, 2018 @02:57PM (#16814300)
who said anything about not publishing?
Re:Why SQLite Does Not Use Git by fulafel on Thursday April 12, 2018 @12:07AM (#16817898)
I'm not sure if you are being serious? The answer is that published advice on rebase overwhelmingly warns against rebasing published code, and for good reason.
Re:Why SQLite Does Not Use Git by y2kenny on Thursday April 12, 2018 @12:58AM (#16818125)
Who said anything about rebasing published code?