doc: Correct git_attr() calls in example code
Commit 7fb0eaa2 (2010-01-17) changed git_attr() to take a string instead of a string and a length. Update the documentation accordingly. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
Aug 4, 2011 at 06:36 UTC
650cfc512e189c1af347c9eeaebc0377e0dcb88d
1 file changed
+5
-5
Documentation/technical/api-gitattributes.txt
+5
-5
@@ -11,9 +11,9 @@ Data Structure
11
`struct git_attr`::
12
13
An attribute is an opaque object that is identified by its name.
14
- Pass the name and its length to `git_attr()` function to obtain
15
- the object of this type. The internal representation of this
16
- structure is of no interest to the calling programs.
14
+ Pass the name to `git_attr()` function to obtain the object of
15
+ this type. The internal representation of this structure is
16
+ of no interest to the calling programs.
17
18
`struct git_attr_check`::
19
@@ -72,8 +72,8 @@ static void setup_check(void)
72
{
73
if (check[0].attr)
74
return; /* already done */
75
- check[0].attr = git_attr("crlf", 4);
76
- check[1].attr = git_attr("ident", 5);
75
+ check[0].attr = git_attr("crlf");
76
+ check[1].attr = git_attr("ident");
77
}
78
------------
79