Le 21/03/2015 17:56, Dmitri Zagidulin a écrit :
On Sat, Mar 21, 2015 at 4:00 AM, kilon alios <kilon.al...@gmail.com
<mailto:kilon.al...@gmail.com>> wrote:
Pull requests make more sense when you create forks and make your
own versions that go to a diffirent direction than the original
repo. When all you want is to contribute then becoming a contributor
makes more sense because its more straightforward for you and the
original authors.
You may be slightly misinterpreting the purpose of pull requests.
They are not primarily for making your own versions that go in a
different direction (although they can help with that).
They're a social / workflow mechanism, for reviewing and accepting
contributions. PRs are a way to publicly say "I would like to contribute
the following change to your repo". And then the actual repo
owners/contributors have a chance to comment on the change (with nice
tools like you can comment on individual lines of code), and ask for
corrections. (And then the author of the PR can make corrections, and
they'll show up automatically in the pull request.) Then, finally, if
they approve of the contribution, the pull request is merged.
If you're a contributor with write access to the original repo, there
isn't a straightforward mechanism to do all of those steps. You can make
commits, but there isn't the same workflow of discussing and accepting.
As a contributor to a repo, you can create a branch and a pull request
towards another branch in that very same repo, so you have access to the
same social mechanism if you want to use it.
But, as you suggest, as a contributor you can shortcut it and commit
directly.
Regards,
Thierry