Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Provide access to the name attribute of git_attr
[gitweb.git]
/
attr.c
diff --git
a/attr.c
b/attr.c
index b1d1d6d791687afc98e273db983b8f8727fcd424..bfa1f43793c841d05980d13bb0e864cbcebadf67 100644
(file)
--- a/
attr.c
+++ b/
attr.c
@@
-36,6
+36,11
@@
static int attr_nr;
static struct git_attr_check *check_all_attr;
static struct git_attr *(git_attr_hash[HASHSIZE]);
+char *git_attr_name(struct git_attr *attr)
+{
+ return attr->name;
+}
+
static unsigned hash_name(const char *name, int namelen)
{
unsigned val = 0, c;