Retrieve current sha and branch name from a git repo.
Retrieves repo information without relying on the git command.
var getRepoInfo = require'git-repo-info'; var info = getRepoInfo; infobranch //=> will be the current branch infosha //=> will be the current sha infoabbreviatedSha //=> will be the first 10 chars of the current sha infotag //=> will be the tag for the current sha (or `null` if no tag exists)
When called without any arguments, git-repo-info will automatically lookup upwards
into parent directories to find the first match with a .git folder.
If passed an argument, it will be assumed to be the path to the repo's .git folder
to inspect.