wiki:StartModPatchAndPullReq

Version 1 (modified by Beman Dawes, 9 years ago) ( diff )

Initial commit

Getting Started with Patches and Pull Requests

Introduction

If you would like to see some change in a Boost library, one approach is to submit a patch. There are two ways to accomplish that - submitting a traditional patch file, or submitting a pull request.

Traditional Patches

Traditional patches are submitted in the usual ways:

  • Attach a diff to Boost developers list message explaining the patch. Easy to do, but least effective.
  • Attach a diff to a patch ticket. Less likely to get lost in the shuffle than a mailing list attachment, but many developers prefer to get pull requests (see below).

Pull Requests

The preferred GitHub patch approach for open source projects is to fork the library involved, develop your patch, and then submit a pull request to the library maintainer. Here is what GitHub says about what they call the "Fork and Pull" approach:

The Fork & Pull Model lets anyone fork an existing repository and push changes to their personal fork without requiring access be granted to the source repository. The changes must then be pulled into the source repository by the project maintainer. This model reduces the amount of friction for new contributors and is popular with open source projects because it allows people to work independently without upfront coordination.

Read the entire article for more information on pull requests.

Boost Library Pull Request Example

Here is how a pull request works for a Boost library:

Acknowledgements

Sohail Somani suggested the topic, Nathan Crookston worked out the steps given in the example.

Note: See TracWiki for help on using the wiki.