-
|
Hey! Can I use libgit2 with Sadly I can't rely on system commands like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You can 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. |
Beta Was this translation helpful? Give feedback.
You can
git_applyadiffto a repository usinggit_apply. You can get agit_difffrom a patch file withgit_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.