git-assert-clean
Assert that the git working tree is clean
Installing
$ npm install git-assert-clean
API
assertClean([callback])
-> promise
Asserts that the working directory is clean. If it is clean, promise
will be resolved with undefined
. If it is not, promise
will be rejected. If you pass a callback
, it will be called with the error.
Promises:
;
Callbacks:
;