#git-has-changed
npm install git-has-changed
const gitHasChanged = require('git-has-changed');
let options = {
repo: 'path/to/repo'
};
gitHasChanged(options, (err, hasChanged) => {
console.log(hasChanged); // true or false
});
// For synchronous call
let hasChanged = gitHasChanged(options);
For other possible options, please have a look at gitlog.
npm test
- 1.1.2
- Update dependencies
- 1.1.1
- fixed unresolved dependencies
- 1.1.0
- added synchronous function call
- 1.0.2
- fixed error handling
- 1.0.1
- fixed typo
- 1.0
- Initial commit