From df743c7d3a04553ffc04ae7cbc64fb300e7f61d2 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Mon, 9 Jan 2012 15:37:19 -0800 Subject: Initial implementation of gitignore support Adds support for .gitignore files to git_status_foreach() and git_status_file(). This includes refactoring the gitattributes code to share logic where possible. The GIT_STATUS_IGNORED flag will now be passed in for files that are ignored (provided they are not already in the index or the head of repo). --- include/git2/status.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/git2') diff --git a/include/git2/status.h b/include/git2/status.h index 42b2dd19..0f2b63de 100644 --- a/include/git2/status.h +++ b/include/git2/status.h @@ -20,18 +20,18 @@ GIT_BEGIN_DECL #define GIT_STATUS_CURRENT 0 + /** Flags for index status */ #define GIT_STATUS_INDEX_NEW (1 << 0) -#define GIT_STATUS_INDEX_MODIFIED (1 << 1) -#define GIT_STATUS_INDEX_DELETED (1 << 2) +#define GIT_STATUS_INDEX_MODIFIED (1 << 1) +#define GIT_STATUS_INDEX_DELETED (1 << 2) /** Flags for worktree status */ #define GIT_STATUS_WT_NEW (1 << 3) -#define GIT_STATUS_WT_MODIFIED (1 << 4) +#define GIT_STATUS_WT_MODIFIED (1 << 4) #define GIT_STATUS_WT_DELETED (1 << 5) -// TODO Ignored files not handled yet -#define GIT_STATUS_IGNORED (1 << 6) +#define GIT_STATUS_IGNORED (1 << 6) /** * Gather file statuses and run a callback for each one. -- cgit v1.2.1