Get synchronously the current branch name
$ npm i is-merge-commit --saveor
$ yarn add is-merge-commitisMergeCommit(commit[, options])
Parameters:
- commit
<String>: The git commit identifier - options
<Object>(optional)
Options:
- cwd
<String>: Current working directory for the git execution
Returns:
- Boolean: Wether it is a merge commit or not
const isMergeCommit = require('is-merge-commit');
isMergeCommit('8bc8ea6'); // true | false
isMergeCommit('8bc8ea6', { cwd: 'any/git/repo' }); // true | falseMIT © Jan Peer Stöcklmair