Check whether the latest commit of master has been merged into current branch for git projects.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
bin
src
test
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
README_ZH.md
package.json

README.md

Npm Package Npm Downloads Build Status node codebeat badge Dependency Status JavaScript Style Guide

git-master-merged (Chinese Doc)

Check whether the latest commit of master has been merged into current branch for git projects.

Installation

Install with npm globally:

$ npm install --global git-master-merged

or as a development dependency for your project:

$ npm install --save-dev git-master-merged

Usage

If installed globally, just run following command in git project directory:

$ git-master-merged

If installed as a development dependency, set up a check script in package.json:

"scripts": {
  "git-master-merged": "git-master-merged"
}

Then run command in project directory:

$ npm run git-master-merged

Also, you can use git-master-merged as a requirement of dist or publish, set up dist and scripts in package.json:

"scripts": {
  "dist": "git-master-merged && webpack --config webpack.config.js",
  "publish": "git-master-merged && other publish commands"
}

ChangeLog

ChangeLog

Licence

MIT