summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-11-21 12:27:03 -0500
committerEdward Thomson <ethomson@github.com>2016-05-26 13:01:08 -0500
commit440e3bae10a4758d5de8d7b8699bf4c412c1a163 (patch)
tree281ea92c4e39070bab916650ef06129ce876afc0 /include/git2
parent00e63b36202be18b1dd1690049f8cbb755132f1b (diff)
downloadlibgit2-440e3bae10a4758d5de8d7b8699bf4c412c1a163.tar.gz
patch: `git_patch_from_patchfile` -> `git_patch_from_buffer`
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/patch.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/git2/patch.h b/include/git2/patch.h
index f2e2476d9..790cb74fc 100644
--- a/include/git2/patch.h
+++ b/include/git2/patch.h
@@ -267,32 +267,6 @@ GIT_EXTERN(int) git_patch_to_buf(
git_buf *out,
git_patch *patch);
-/** Options for parsing patch files. */
-typedef struct {
- /**
- * The length of the prefix (in path segments) for the filenames.
- * This prefix will be removed when looking for files. The default is 1.
- */
- uint32_t prefix_len;
-} git_patch_options;
-
-#define GIT_PATCH_OPTIONS_INIT { 1 }
-
-/**
- * Create a patch from the contents of a patch file.
- *
- * @param out The patch to be created
- * @param patchfile The contents of a patch file
- * @param patchfile_len The length of the patch file
- * @param opts The git_patch_options
- * @return 0 on success, <0 on failure.
- */
-GIT_EXTERN(int) git_patch_from_patchfile(
- git_patch **out,
- const char *patchfile,
- size_t patchfile_len,
- git_patch_options *opts);
-
GIT_END_DECL
/**@}*/