git-spawned-stream
Create a readable stream from a spawned git process.
Usage
Arguments:
repoPath
- the path to the repo, ex: /home/alex/node/.git (or the path to the git bare repo)spawnArguments
- the arguments that will be passed to thechild_process.spawn
functionlimitInBytes
- kill the process if it exceeds the imposed limit (sends more data than allowed)gitBinary
- path to the git binary to use (use the one inPATH
by default)
Example:
var gitSpawnedStream = ;var path = ;var repoPath = processenvREPO || path;repoPath = path;var byteLimit = 5 * 1024 * 1024; // 5 Mb // sort of a git log -n 2var stream = ; stream;
License
MIT