News for hackers. Stuff that matters.
Re:Apache Software Foundation joins GitHub open source commu... by Monotonic on Monday April 29, 2019 @01:13PM (#19780308)
> You can't push to origin unless it's your own project or your team's. We're talking about PR-based workflows.

Having to create a fork per PR is a rather antiquated way of doing it. In my experience, you can almost always push to origin and create a new PR from the branch, but maybe I've just been lucky with the projects I contribute to.

> It's not a constant cost, unless you're saying you only ever intend to contribute to one project ever. It's a fixed cost that you will pay N times, where N is the number of projects you contribute to.

It's a constant cost in the same way that looking up where to submit your patch to is a constant cost. You will pay both N times, where N is the number of projects you contribute to.

Re:Apache Software Foundation joins GitHub open source commu... by colbyrussell on Monday April 29, 2019 @01:16PM (#19780356)
> you can almost always push to origin

Why am I having to repeat myself here? You can never push to origin unless it's your own project or your team's project.

> It's a constant cost in the same way that looking up where to submit your patch to is a constant cost. You will pay [...] N times, where N is the number of projects you contribute to.

In other words, it's not a constant cost.

Re:Apache Software Foundation joins GitHub open source commu... by jjeaff on Monday April 29, 2019 @01:20PM (#19780403)
>why am I having to repeat myself here

Because you are incorrect and not reading the responses.

>you set origin to the branch you own...

[dead]
Re:Apache Software Foundation joins GitHub open source commu... by danieldk on Monday April 29, 2019 @01:47PM (#19780695)
Buddy, the entire premise here is user "Monotonic" telling me that configuring remotes is unnecessary and that that in fact he or she just pushes to origin.

They are referring to origin as the forked repository. E.g. if I contribute to nixpkgs (the NixOS package repository), I only have to fork it once, use that as my origin, and can create branches and submit PRs.

So, you are both right. If you contribute many times to the same repo, you only have to fork once. If you do a lot of drive-by contributions, you'll end up forking a lot of repositories.

(I fully agree that GitHub has a lot of overhead compared to git format-patch/diff. GitHub et al. also have some benefits in terms of communication. At any rate, diff/format-patch are not that hard, so I think any git user should learn it.)

Re:Apache Software Foundation joins GitHub open source commu... by tracker1 on Monday April 29, 2019 @04:27PM (#19782293)
On the drive-bys... create a YOURNAME-contrib organization, that you can fork to. I've started down this path which will help more as I get used to it.
Re:Apache Software Foundation joins GitHub open source commu... by colbyrussell on Monday April 29, 2019 @02:13PM (#19780964)
> If you contribute many times to the same repo, you only have to fork once. If you do a lot of drive-by contributions, you'll end up forking a lot of repositories.

That doesn't contradict anything I've written here, or anything I've written in years past on exactly this topic. But this _entire_ branch of conversation started with someone quibbling that I didn't rank configuration of remotes as a zero-cost operation. So, no, we're not both right.