]> git.proxmox.com Git - libgit2.git/blob - src/filter.h
Merge pull request #1847 from libgit2/filters-alternative
[libgit2.git] / src / filter.h
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_filter_h__
8 #define INCLUDE_filter_h__
9
10 #include "common.h"
11 #include "git2/filter.h"
12
13 typedef enum {
14 GIT_CRLF_GUESS = -1,
15 GIT_CRLF_BINARY = 0,
16 GIT_CRLF_TEXT,
17 GIT_CRLF_INPUT,
18 GIT_CRLF_CRLF,
19 GIT_CRLF_AUTO,
20 } git_crlf_t;
21
22 extern void git_filter_free(git_filter *filter);
23
24 /*
25 * Available filters
26 */
27
28 extern git_filter *git_crlf_filter_new(void);
29 extern git_filter *git_ident_filter_new(void);
30
31 #endif