This module returns an array of staged files and their status acording to git.
npm install staged-git-files
var sgf = ;;
$ staged-git-filesAdded package.jsonModified readme.mdRenamed index.js
Get a list of staged git files
Get head that will be used in the diff to ID which files are waiting to be staged.
This is a proxy for fs.readFile with one change. The filename will be relative to the
Boolean that flips logging on and off. By default this is false. If true, all git commands will be console logged.
If true, include content will add a
err param to the file object.
The current working directory. AKA: where the .git folder you care about is.
SGF-Status (git status code)