Skip to content

Need support for adding submodule changes to index #953

Description

@haacked

I know that @arrbee added support for git_submodule_add_to_index to LibGit2. Ideally, this simply works as part of the existing Index.Stage command, if possible.

That way, something like this would Just Work™:

using (var libGitRepo = new Repository("@c:\path-to-my-repo\.git")) {
    libGitRepo.Index.Stage(new [] { "file1.txt", ".gitmodules", "AnotherFile.md" });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions