Skip to content

Running libgit2 commands #62

@iliakan

Description

@iliakan

Supercool! It actually works!

How can I run commands like:

opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED |
		GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX |
		GIT_STATUS_OPT_RENAMES_INDEX_TO_WORKDIR;

git_status_list_new(&statuslist, g_repo, &opts);

(sorry for writing it C-style)?

P.S. This is the signature: https://libgit2.org/libgit2/#v1.5.1/group/status/git_status_list_new

P.P.S. Here's an example in this repo: https://github.com/petersalomonsen/wasm-git/blob/master/libgit2patchedfiles/examples/status.c

Also, is it possible to access repository tree, e.g. I want to test the repository structure, tree of commits, in my code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions