summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2011-08-04 04:36:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-04 22:53:16 (GMT)
commit352404ac4ccab144cd866b1f24c90b8f29ca33c2 (patch)
tree26834953b4e6c72abaa9e1e6d4e1da42b10a191d /attr.h
parent09d7dd7ad62fef60fc223fa74eb04c8dc783c2f6 (diff)
downloadgit-352404ac4ccab144cd866b1f24c90b8f29ca33c2.zip
git-352404ac4ccab144cd866b1f24c90b8f29ca33c2.tar.gz
git-352404ac4ccab144cd866b1f24c90b8f29ca33c2.tar.bz2
Provide access to the name attribute of git_attr
It will be present in any likely future reimplementation, and its availability simplifies other code. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/attr.h b/attr.h
index 8b3f19b..d4f875a 100644
--- a/attr.h
+++ b/attr.h
@@ -29,6 +29,13 @@ struct git_attr_check {
const char *value;
};
+/*
+ * Return the name of the attribute represented by the argument. The
+ * return value is a pointer to a null-delimited string that is part
+ * of the internal data structure; it should not be modified or freed.
+ */
+char *git_attr_name(struct git_attr *);
+
int git_checkattr(const char *path, int, struct git_attr_check *);
enum git_attr_direction {