Skip to content
Discussion options

You must be logged in to vote

You can git_apply a diff to a repository using git_apply. You can get a git_diff from a patch file with git_diff_from_buffer .

However, our diff machinery is built to read patch files that were produced by Git implementations (git, libgit2, jgit, etc). We don't necessarily support a generic patch application - patch files are extraordinarily wide-ranging in their format. So if you have something that looks like a git diff, great! If not, we may not be able to parse it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mainrs
Comment options

Answer selected by mainrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants