@ -19,7 +19,7 @@ Data Structure
`struct git_attr_check`::
`struct git_attr_check`::
This structure represents a set of attributes to check in a call
This structure represents a set of attributes to check in a call
to `git_checkattr()` function, and receives the results.
to `git_check_attr()` function, and receives the results.
Attribute Values
Attribute Values
@ -52,7 +52,7 @@ Querying Specific Attributes
attributes you would want to check. To populate this array, you would
attributes you would want to check. To populate this array, you would
need to define necessary attributes by calling `git_attr()` function.
need to define necessary attributes by calling `git_attr()` function.
* Call `git_checkattr()` to check the attributes for the path.
* Call `git_check_attr()` to check the attributes for the path.
* Inspect `git_attr_check` structure to see how each of the attribute in
* Inspect `git_attr_check` structure to see how each of the attribute in
the array is defined for the path.
the array is defined for the path.
@ -78,13 +78,13 @@ static void setup_check(void)
}
}
------------
------------
. Call `git_checkattr()` with the prepared array of `struct git_attr_check`:
. Call `git_check_attr()` with the prepared array of `struct git_attr_check`:
------------
------------
const char *path;
const char *path;
setup_check();
setup_check();
git_checkattr(path, ARRAY_SIZE(check), check);
git_check_attr(path, ARRAY_SIZE(check), check);
------------
------------
. Act on `.value` member of the result, left in `check[]`:
. Act on `.value` member of the result, left in `check[]`: