git-current-branch.js
function gitCurrentBranch() {
  return git('status --porcelain -b', stdout => {
    const status = gitUtil.extractStatus(stdout);
    return status.branch.split('...')[0];
  });
}
function gitCurrentBranch() {
  return git('status --porcelain -b', stdout => {
    const status = gitUtil.extractStatus(stdout);
    return status.branch.split('...')[0];
  });
}
function gitCurrentBranch ( ) { return git ( 'status --porcelain -b' , stdout => { const status = gitUtil . extractStatus ( stdout ) ; return status . branch . split ( '...' ) [ 0 ] ; } ) ; }
Get the current branch.
@return {promise}    A promise get the current branch,
Get the current branch .