{"thread":{"id":"38098","subject":"[PATCH] Documentation: Mention comment syntax in gitattributes.txt","startedAt":"2014-12-03T11:11:13Z","lastAt":"2014-12-03T11:11:13Z","messageCount":1,"participants":["Michal Sojka"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"252939","messageId":"1417605073-8114-1-git-send-email-sojkam1@fel.cvut.cz","threadId":"38098","inReplyTo":null,"subject":"[PATCH] Documentation: Mention comment syntax in gitattributes.txt","fromName":"Michal Sojka","fromEmail":"sojkam1@fel.cvut.cz","sentAt":"2014-12-03T11:11:13Z","receivedAt":"2014-12-03T11:11:13Z","isPatch":true,"sender":{"key":"sojkam1@fel.cvut.cz","avatar":"https://avatars.githubusercontent.com/u/140542?v=4"},"body":"gitattributes documentation does not specify how to include comments in\ngitattribute files. According to parse_attr_line() in attr.c, # can be\nused to start a comment. This patch add this to the documentation.\n\nSigned-off-by: Michal Sojka <sojkam1@fel.cvut.cz>\n---\n Documentation/gitattributes.txt | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt\nindex c892ffa..0a61a71 100644\n--- a/Documentation/gitattributes.txt\n+++ b/Documentation/gitattributes.txt\n@@ -16,10 +16,16 @@ DESCRIPTION\n A `gitattributes` file is a simple text file that gives\n `attributes` to pathnames.\n \n-Each line in `gitattributes` file is of form:\n+Lines in `gitattributes` have one of the following forms:\n \n+- A blank line can serve as a separator for readability.\n+\n+- A line starting with # serves as a comment.\n+\n+- An attribute specification line:\n++\n \tpattern\tattr1 attr2 ...\n-\n++\n That is, a pattern followed by an attributes list,\n separated by whitespaces.  When the pattern matches the\n path in question, the attributes listed on the line are given to\n-- \n2.1.3\n"}]}