mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
09d7dd7ad6
commit
352404ac4c
7
attr.h
7
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 {
|
||||
|
||||
Reference in New Issue
Block a user