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

Accessing commit object flags #794

Open
andreisilviudragnea opened this issue Jan 25, 2022 · 2 comments
Open

Accessing commit object flags #794

andreisilviudragnea opened this issue Jan 25, 2022 · 2 comments

Comments

@andreisilviudragnea
Copy link

How should I write this C code in Rust: commit->object.flags & PATCHSAME (https://github.com/git/git/blob/master/sequencer.c#L5187)?

Object flags are not accessible.

@extrawurst
Copy link
Contributor

not even sure how that works. what type does commit->object have? see https://github.com/libgit2/libgit2/blob/main/src/object.h#L19 git_object should not have flags

@neithernut
Copy link

Note: this crate is build upon libgit2, which (mainly) exposes opaque data types.

You should probably start with figuring out/communicating what the expression means semantically.

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

3 participants