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 "buffer.h" 14 15 extern int git_apply__patch( 16 git_buf *out, 17 char **filename, 18 unsigned int *mode, 19 const char *source, 20 size_t source_len, 21 git_patch *patch); 22 23 #endif 24