Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/attr.h b/attr.h
index 1e5ab40694..8ec2d3d35c 100644
--- a/attr.h
+++ b/attr.h
@@ -6,9 +6,19 @@ struct git_attr;
struct git_attr *git_attr(const char *, int);
+/* Internal use */
+#define ATTR__TRUE ((void *) 1)
+#define ATTR__FALSE ((void *) 0)
+#define ATTR__UNSET ((void *) -1)
+
+/* For public to check git_attr_check results */
+#define ATTR_TRUE(v) ((v) == ATTR__TRUE)
+#define ATTR_FALSE(v) ((v) == ATTR__FALSE)
+#define ATTR_UNSET(v) ((v) == ATTR__UNSET)
+
struct git_attr_check {
struct git_attr *attr;
- int isset;
+ void *value;
};
int git_checkattr(const char *path, int, struct git_attr_check *);