]>
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 */
28 git_attr_session
*attr_session
;
33 #define GIT_FILTER_OPTIONS_INIT {0}
35 extern void git_filter_free(git_filter
*filter
);
37 extern int git_filter_list__load_ext(
38 git_filter_list
**filters
,
40 git_blob
*blob
, /* can be NULL */
42 git_filter_mode_t mode
,
43 git_filter_options
*filter_opts
);
49 extern git_filter
*git_crlf_filter_new(void);
50 extern git_filter
*git_ident_filter_new(void);