Skip to content

Commit 650cfc5

Browse files
mhaggergitster
authored andcommitted
doc: Correct git_attr() calls in example code
Commit 7fb0eaa (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>
1 parent cde1518 commit 650cfc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/technical/api-gitattributes.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Data Structure
1111
`struct git_attr`::
1212

1313
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.
1717

1818
`struct git_attr_check`::
1919

@@ -72,8 +72,8 @@ static void setup_check(void)
7272
{
7373
if (check[0].attr)
7474
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");
7777
}
7878
------------
7979

0 commit comments

Comments
 (0)