summaryrefslogtreecommitdiff
path: root/pathspec.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-02 08:59:29 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-03 14:10:24 -0700
commitd8e47e7d5c62e46c517cd56737f8fcb55ccf4c8f (patch)
treef526443cf3c44dbcf36048ad9f83190fc796528e /pathspec.h
parentdd1a234eeb36eb853982ff3fe57b7c6752dd55c6 (diff)
downloadgit-sb/pathspec-label.tar.gz
pathspec: disable preload-index when attribute pathspec magic is in usesb/pathspec-label
The recent addition of the pathspec magic that requires a path to have certain attributes set is not yet compatible with the preload index codepath (e.g. "git status ':(attr:VAR=VAL)'") because the attribute subsystem is not thread-ready. For now, disable preload-index when such a pathspec magic is in use, until the attribute subsystem learns how to better cope with threading, to ease the development of the parts of the system that want to utilize the pathspec magic. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pathspec.h')
-rw-r--r--pathspec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pathspec.h b/pathspec.h
index 5308137485..07d21f01b6 100644
--- a/pathspec.h
+++ b/pathspec.h
@@ -115,4 +115,6 @@ extern void add_pathspec_matches_against_index(const struct pathspec *pathspec,
extern const char *check_path_for_gitlink(const char *path);
extern void die_if_path_beyond_symlink(const char *path, const char *prefix);
+extern int pathspec_is_non_threadable(const struct pathspec *);
+
#endif /* PATHSPEC_H */