{"thread":{"id":"15111","subject":"[PATCH] Teach \"git diff\" HTML funcname patterns","startedAt":"2008-08-20T17:27:46Z","lastAt":"2008-08-20T17:49:15Z","messageCount":3,"participants":["Johan Herland","Mike Hommey"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"87829","messageId":"200808201927.47099.johan@herland.net","threadId":"15111","inReplyTo":null,"subject":"[PATCH] Teach \"git diff\" HTML funcname patterns","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2008-08-20T17:27:46Z","receivedAt":"2008-08-20T17:27:46Z","isPatch":true,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"Finds lines with <h1>..<h6> tags. The pattern is adapted from the ruby one.\n\nSigned-off-by: Johan Herland <johan@herland.net>\n---\n Documentation/gitattributes.txt |    2 ++\n diff.c                          |    1 +\n 2 files changed, 3 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt\nindex db16b0c..8bb05e6 100644\n--- a/Documentation/gitattributes.txt\n+++ b/Documentation/gitattributes.txt\n@@ -320,6 +320,8 @@ patterns are available:\n \n - `tex` suitable for source code for LaTeX documents.\n \n+- `html` suitable for HTML/XHTML documents.\n+\n \n Performing a three-way merge\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ndiff --git a/diff.c b/diff.c\nindex a6c1432..13ae85d 100644\n--- a/diff.c\n+++ b/diff.c\n@@ -1382,6 +1382,7 @@ static struct builtin_funcname_pattern {\n \t{ \"bibtex\", \"\\\\(@[a-zA-Z]\\\\{1,\\\\}[ \\t]*{\\\\{0,1\\\\}[ \\t]*[^ \\t\\\"@',\\\\#}{~%]*\\\\).*$\" },\n \t{ \"tex\", \"^\\\\(\\\\\\\\\\\\(\\\\(sub\\\\)*section\\\\|chapter\\\\|part\\\\)\\\\*\\\\{0,1\\\\}{.*\\\\)$\" },\n \t{ \"ruby\", \"^\\\\s*\\\\(\\\\(class\\\\|module\\\\|def\\\\)\\\\s.*\\\\)$\" },\n+\t{ \"html\", \"^\\\\s*\\\\(<h[1-6]\\\\s.*>.*\\\\)$\" },\n };\n \n static const char *diff_funcname_pattern(struct diff_filespec *one)\n-- \n1.6.0.96.g2fad1\n"},{"id":"87831","messageId":"20080820172940.GA26411@glandium.org","threadId":"15111","inReplyTo":"200808201927.47099.johan@herland.net","subject":"Re: [PATCH] Teach \"git diff\" HTML funcname patterns","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2008-08-20T17:29:40Z","receivedAt":"2008-08-20T17:29:40Z","isPatch":true,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"On Wed, Aug 20, 2008 at 07:27:46PM +0200, Johan Herland wrote:\n> Finds lines with <h1>..<h6> tags. The pattern is adapted from the ruby one.\n\nDon't you want to catch <H1>...<H6> too ?\n\nMike\n"},{"id":"87833","messageId":"200808201949.15450.johan@herland.net","threadId":"15111","inReplyTo":"20080820172940.GA26411@glandium.org","subject":"[PATCH v2] Teach \"git diff\" HTML funcname patterns","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2008-08-20T17:49:15Z","receivedAt":"2008-08-20T17:49:15Z","isPatch":true,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"Finds lines with <h1>..<h6> tags. The pattern is adapted from the ruby one.\n\nSigned-off-by: Johan Herland <johan@herland.net>\n---\n\nOn Wednesday 20 August 2008, Mike Hommey wrote:\n> On Wed, Aug 20, 2008 at 07:27:46PM +0200, Johan Herland wrote:\n> > Finds lines with <h1>..<h6> tags. The pattern is adapted from the\n> > ruby one.\n> Don't you want to catch <H1>...<H6> too ?\n\nYes. Thanks.\n\n\nHave fun!\n\n...Johan\n\n\n Documentation/gitattributes.txt |    2 ++\n diff.c                          |    1 +\n 2 files changed, 3 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt\nindex db16b0c..8bb05e6 100644\n--- a/Documentation/gitattributes.txt\n+++ b/Documentation/gitattributes.txt\n@@ -320,6 +320,8 @@ patterns are available:\n \n - `tex` suitable for source code for LaTeX documents.\n \n+- `html` suitable for HTML/XHTML documents.\n+\n \n Performing a three-way merge\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ndiff --git a/diff.c b/diff.c\nindex a6c1432..9d4b961 100644\n--- a/diff.c\n+++ b/diff.c\n@@ -1382,6 +1382,7 @@ static struct builtin_funcname_pattern {\n \t{ \"bibtex\", \"\\\\(@[a-zA-Z]\\\\{1,\\\\}[ \\t]*{\\\\{0,1\\\\}[ \\t]*[^ \\t\\\"@',\\\\#}{~%]*\\\\).*$\" },\n \t{ \"tex\", \"^\\\\(\\\\\\\\\\\\(\\\\(sub\\\\)*section\\\\|chapter\\\\|part\\\\)\\\\*\\\\{0,1\\\\}{.*\\\\)$\" },\n \t{ \"ruby\", \"^\\\\s*\\\\(\\\\(class\\\\|module\\\\|def\\\\)\\\\s.*\\\\)$\" },\n+\t{ \"html\", \"^\\\\s*\\\\(<[Hh][1-6]\\\\s.*>.*\\\\)$\" },\n };\n \n static const char *diff_funcname_pattern(struct diff_filespec *one)\n-- \n1.6.0.96.g2fad1\n"}]}