Skip to content

How to check count of changed files to avoid empty commits #1976

Description

@paxcom-sgarg

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions