robertdfrench / git-pr

Pull requests without Git(Hub|Lab)
GNU General Public License v3.0
0 stars 1 forks source link

build status

git-pr

Pull requests without Git{Hub,Lab,Whatever}

LicenseRoadmapDownload

Git does not support pull requests by default, but it could! By following a few simple conventions, any shared repository can support pull requests without additional tooling required from the host. git-pr is tooling to implement those conventions, making it easy to create, approve, or destroy pull requests -- all from the command line:

$ git pr-create hotfix # Create a new branch for an emergency hotfix
Switched to a new branch 'hotfix/0'
...
 * [new branch]      hotfix/0 -> hotfix/0
Branch 'hotfix/0' set up to track remote branch 'hotfix/0' from 'origin'.
$ # (code code code...)
$ git push # Submit for review... it's just a branch!

Meanwhile, your collaborators can check for the latest updates, review your changes, and even merge them:

$ git pr-list # Check the server for new PRs
...
 * [new branch]      hotfix/0 -> hotfix/0
hotfix
remove-hardcoded-passwords
use-git-pr-tool
$ # (review review review...)
$ git pr-accept hotfix # LGTM!

Given this minimalist approach, the means of communication is up to you. We don't try to force you into some mechanism that just ends up emailing you anyway. :smirk: