Skip to content

Is there a way to apply a patch file into a repository by using this lib? #2112

Open
@yukozh

Description

@yukozh

Now I have a patch file like:

+++ xxx.cs
--- xxx.cs
@@ x,x x,x @@
+ xxxx
- xxxx
- xxxx
xxxx

I want to use libgit2sharp to apply this patch file to a repository.
How to do this?

Activity

retroandchill

retroandchill commented on May 11, 2025

@retroandchill

I also want to know this, as I need a way to apply patches to a downloaded directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yukozh@retroandchill

        Issue actions

          Is there a way to apply a patch file into a repository by using this lib? · Issue #2112 · libgit2/libgit2sharp