eye-of-git tracks the
.git/refs/heads directory in a git repo for changes to the
head commit. It emits
commit events with the repo name, the branch that was changed and the commit it has been changed to.
var eog =var watcher =/** Lets get some "commit" events for the* heads already in the .git repo*/watcher/** Changes to branch heads will now* emit "commit" events.*/watcher
Call the module with the directory to be watched as well as an optional list of files to track specifically. eog just hands these argument directly into a tiny-watcher instance.
This is the only event currently supported. The callback is called with the
var head =repo: "repo"branch: "branch"commit: "commit"
more information may be included in future versions.
eog instance to emit
commit events for all of the
head files that the underlying tiny-watcher is tracking.
npm install eye-of-git