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

some errors in lgReadIndex #57

Open
imp1377 opened this issue Nov 19, 2015 · 2 comments
Open

some errors in lgReadIndex #57

imp1377 opened this issue Nov 19, 2015 · 2 comments
Labels

Comments

@imp1377
Copy link

imp1377 commented Nov 19, 2015

let oid   = c'git_index_entry'oid entry

there is no oid field in git_index_entry struct ( changed to id )

if 0 /= flags .&. 2 -- c'GIT_IDXENTRY_REMOVE

incorrect. flags contains path length in less 12 bits. this expression excluding entries
with path size 2. for GIT_IDXENTRY_REMOVE see flags_extended

@jwiegley
Copy link
Owner

This might be true in the latest libgit2, but gitlib uses it own version of libgit2. How did you determine these errors?

@imp1377
Copy link
Author

imp1377 commented Nov 23, 2015

for 2 files in test repo index ( "f1" and "f2" ) readIndex returns empty list. after adding file "ololo" it was returned.

@jwiegley jwiegley added the bug label Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants