Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GIT_ATTR_CHECK flag enums missing. #1964

Open
axkibe opened this issue Jan 20, 2023 · 0 comments
Open

GIT_ATTR_CHECK flag enums missing. #1964

axkibe opened this issue Jan 20, 2023 · 0 comments

Comments

@axkibe
Copy link

axkibe commented Jan 20, 2023

System information

  • node version: 16.14.2
  • npm or yarn version: 8.5.0
  • OS/version/architecture: --
  • Applicable nodegit version: 0.27.0

Attr.get ( https://www.nodegit.org/api/attr/ ) wants as second paramter some flags with are missing from enum.js

In vendor/libgit2/include/git2/attr.h they are visible as
0 FILE_THEN_INDEX
1 INDEX_THEN_FILE
2 INDEX_ONLY
1 << 2 NO_SYSTEM
1 << 3 INCUDE_HEAD

I can just use the flags literally in my code, but it aint nice.

BTW: I do not really understand what they mean anyway (also libgit2 documentation is kinda lacking here) ...but otherwise it seems to work (determine if a given path ought to be in LFS or not)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant