1 /* 2 * Copyright (C) the libgit2 contributors. All rights reserved. 3 * 4 * This file is part of libgit2, distributed under the GNU GPL v2 with 5 * a Linking Exception. For full terms see the included COPYING file. 6 */ 7 #ifndef INCLUDE_apply_h__ 8 #define INCLUDE_apply_h__ 9 10 #include "common.h" 11 12 #include "git2/patch.h" 13 #include "git2/apply.h" 14 #include "buffer.h" 15 16 extern int git_apply__patch( 17 git_buf *out, 18 char **filename, 19 unsigned int *mode, 20 const char *source, 21 size_t source_len, 22 git_patch *patch, 23 const git_apply_options *opts); 24 25 #endif 26