How to check count of changed files to avoid empty commits #1976
Open
Description
System information
- node version: v14.15.3
- npm or yarn version: npm 6.14.9
- OS/version/architecture: WIndows 10
- Applicable nodegit version: ^0.26.1
node -v
npm -v # (or yarn -v)
node -e "console.log(process.platform)"
node -e "console.log(require('os').release())"
node -e "console.log(console.log(process.arch))"
trying to get number of files to avoid empty commits using entryCount(), but it is returning a number > 0 even if there is no file to commit
SO https://stackoverflow.com/questions/75755796/nodegit-avoid-creating-empty-commit-nodejs-bitbucket
any help?
Metadata
Assignees
Labels
No labels