]>
git.proxmox.com Git - libgit2.git/blob - src/filter.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
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.
7 #ifndef INCLUDE_filter_h__
8 #define INCLUDE_filter_h__
11 #include "attr_file.h"
12 #include "git2/filter.h"
14 /* Amount of file to examine for NUL byte when checking binary-ness */
15 #define GIT_FILTER_BYTES_TO_CHECK_NUL 8000
17 /* Possible CRLF values */
27 extern void git_filter_list__set_temp_buf(
28 git_filter_list
*fl
, git_buf
*temp_buf
);
30 extern void git_filter_free(git_filter
*filter
);
32 extern int git_filter_list__load_with_attr_session(
33 git_filter_list
**filters
,
35 git_attr_session
*attr_session
,
36 git_blob
*blob
, /* can be NULL */
38 git_filter_mode_t mode
,
45 extern git_filter
*git_crlf_filter_new(void);
46 extern git_filter
*git_ident_filter_new(void);