{"thread":{"id":"42295","subject":"[PATCH] Documentation: correct typo in example","startedAt":"2016-05-12T21:30:01Z","lastAt":"2016-05-12T21:52:01Z","messageCount":2,"participants":["Stefan Beller","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"286404","messageId":"20160512213001.30822-1-sbeller@google.com","threadId":"42295","inReplyTo":null,"subject":"[PATCH] Documentation: correct typo in example","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-05-12T21:30:01Z","receivedAt":"2016-05-12T21:30:01Z","isPatch":true,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"The example want's to explain how 'To see how attributes \"crlf\" and\n\"indent\" are set for different paths.'\n\nSpell the selected attribute correctly.\n\nSigned-off-by: Stefan Beller <sbeller@google.com>\n---\n Documentation/technical/api-gitattributes.txt | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/Documentation/technical/api-gitattributes.txt b/Documentation/technical/api-gitattributes.txt\nindex 2602668..0d7e98c 100644\n--- a/Documentation/technical/api-gitattributes.txt\n+++ b/Documentation/technical/api-gitattributes.txt\n@@ -74,7 +74,7 @@ static void setup_check(void)\n \tif (check[0].attr)\n \t\treturn; /* already done */\n \tcheck[0].attr = git_attr(\"crlf\");\n-\tcheck[1].attr = git_attr(\"ident\");\n+\tcheck[1].attr = git_attr(\"indent\");\n }\n ------------\n \n-- \n2.8.2.397.g23dc3dd.dirty\n"},{"id":"286406","messageId":"xmqq7fezc5by.fsf@gitster.mtv.corp.google.com","threadId":"42295","inReplyTo":"20160512213001.30822-1-sbeller@google.com","subject":"Re: [PATCH] Documentation: correct typo in example","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-05-12T21:52:01Z","receivedAt":"2016-05-12T21:52:01Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Stefan Beller <sbeller@google.com> writes:\n\n> The example want's to explain how 'To see how attributes \"crlf\" and\n> \"indent\" are set for different paths.'\n>\n> Spell the selected attribute correctly.\n>\n> Signed-off-by: Stefan Beller <sbeller@google.com>\n> ---\n>  Documentation/technical/api-gitattributes.txt | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n>\n> diff --git a/Documentation/technical/api-gitattributes.txt b/Documentation/technical/api-gitattributes.txt\n> index 2602668..0d7e98c 100644\n> --- a/Documentation/technical/api-gitattributes.txt\n> +++ b/Documentation/technical/api-gitattributes.txt\n> @@ -74,7 +74,7 @@ static void setup_check(void)\n>  \tif (check[0].attr)\n>  \t\treturn; /* already done */\n>  \tcheck[0].attr = git_attr(\"crlf\");\n> -\tcheck[1].attr = git_attr(\"ident\");\n> +\tcheck[1].attr = git_attr(\"indent\");\n>  }\n>  ------------\n\nTechnically the text and code after this patch is more \"correct\".\n\nBack when I wrote the original, 530e741c (Start preparing the API\ndocuments., 2007-11-24), however, I did mean to use \"ident\", iow,\nthe introductory text has typo, and the code sample is correct.\nThere wasn't any \"indent\" attribute that is natively recognised by\nGit back then for git_attr(\"indent\") would have made sense, either.\n\nSo perhaps update the introductory text instead?\n"}]}