diff options
| author | J Wyman <jeremy.wyman@microsoft.com> | 2015-03-30 14:07:44 -0700 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2015-04-28 14:24:58 -0400 |
| commit | 4c09e19a3764a1e5f3340dabf8104dfed32e7673 (patch) | |
| tree | 8df38e74e802445528d626d37276e8b119a7eb46 /src/attr_file.h | |
| parent | d969d41547080d5e924d49f44ba5de1ade5b343c (diff) | |
| download | libgit2-4c09e19a3764a1e5f3340dabf8104dfed32e7673.tar.gz | |
Improvements to ignore performance on Windows.
Minimizing the number directory and file opens, minimizes the amount of IO thus reducing the overall cost of performing ignore operations.
Diffstat (limited to 'src/attr_file.h')
| -rw-r--r-- | src/attr_file.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/attr_file.h b/src/attr_file.h index aa9a16de0..388ecf4c0 100644 --- a/src/attr_file.h +++ b/src/attr_file.h @@ -202,8 +202,10 @@ extern bool git_attr_rule__match( extern git_attr_assignment *git_attr_rule__lookup_assignment( git_attr_rule *rule, const char *name); +typedef enum { GIT_DIR_FLAG_TRUE = 1, GIT_DIR_FLAG_FALSE = 0, GIT_DIR_FLAG_UNKNOWN = -1 } git_dir_flag; + extern int git_attr_path__init( - git_attr_path *info, const char *path, const char *base); + git_attr_path *info, const char *path, const char *base, git_dir_flag is_dir); extern void git_attr_path__free(git_attr_path *info); |
