]> git.proxmox.com Git - libgit2.git/blob - src/ignore.h
Update Copyright header
[libgit2.git] / src / ignore.h
1 /*
2 * Copyright (C) 2009-2012 the libgit2 contributors
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_ignore_h__
8 #define INCLUDE_ignore_h__
9
10 #include "repository.h"
11 #include "vector.h"
12
13 typedef struct {
14 git_repository *repo;
15 char *dir;
16 git_vector stack;
17 } git_ignores;
18
19 extern int git_ignore__for_path(git_repository *repo, const char *path, git_ignores *stack);
20 extern void git_ignore__free(git_ignores *stack);
21 extern int git_ignore__lookup(git_ignores *stack, const char *path, int *ignored);
22
23 #endif