gitstat - stream git status
Read orginal output of the underlying
git status -uno -z file by file:
var gitstat = statusstatus =status
Pipe filenames of added and/or modified files:
var gitstat =
A path to a local git repository.
Optionally configure which filenames should be emitted by passing Git statuses (
"M|A|D|R|C|U") as String of undefined length. For example:
This would return a readable stream that emits filenames of all added and/or modified files.
With the default mode (
undefined), not filenames, but the original output of
git status -uno -z is emitted file by file. For details please refer to
This function returns a Readable stream. On the first read this stream executes
git status -uno -z and begins emitting paths according to mode. Untracked files are ignored.