{"thread":{"id":"6483","subject":"[PATCH] contrib/vim: update syntax for changed commit template","startedAt":"2007-01-23T03:21:15Z","lastAt":"2007-01-23T03:21:15Z","messageCount":1,"participants":["Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"32362","messageId":"20070123032115.GA20554@coredump.intra.peff.net","threadId":"6483","inReplyTo":null,"subject":"[PATCH] contrib/vim: update syntax for changed commit template","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-01-23T03:21:15Z","receivedAt":"2007-01-23T03:21:15Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"\nSigned-off-by: Jeff King <peff@peff.net>\n---\nIt looks like things have settled down here, so it would be nice to\napply this before v1.5.0 (though I still think \"changed but not updated\"\nis terrible wording, my previous message to that effect received no\nresponse).\n\nOn Thu, Jan 11, 2007 at 08:17:12AM +0100, Juergen Ruehle wrote:\n> Thanks for tracking this. It would be nice if we could make the\n> syntax highlighting less dependent on the exact wording.\n\nUnfortunately, I don't see another way short of counting which \"stanza\"\nwe're in, and that is highly dependent on the formatting of stanzas, as\nwell as what the user might have written in his commit message. This way\nis reasonably robust, and the messages shouldn't change too frequently.\n\n contrib/vim/syntax/gitcommit.vim |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/contrib/vim/syntax/gitcommit.vim b/contrib/vim/syntax/gitcommit.vim\nindex d911efb..332121b 100644\n--- a/contrib/vim/syntax/gitcommit.vim\n+++ b/contrib/vim/syntax/gitcommit.vim\n@@ -1,7 +1,7 @@\n syn region gitLine start=/^#/ end=/$/\n-syn region gitCommit start=/^# Added but not yet committed:$/ end=/^#$/ contains=gitHead,gitCommitFile\n+syn region gitCommit start=/^# Changes to be committed:$/ end=/^#$/ contains=gitHead,gitCommitFile\n syn region gitHead contained start=/^#   (.*)/ end=/^#$/\n-syn region gitChanged start=/^# Changed but not added:/ end=/^#$/ contains=gitHead,gitChangedFile\n+syn region gitChanged start=/^# Changed but not updated:/ end=/^#$/ contains=gitHead,gitChangedFile\n syn region gitUntracked start=/^# Untracked files:/ end=/^#$/ contains=gitHead,gitUntrackedFile\n \n syn match gitCommitFile contained /^#\\t.*/hs=s+2\n-- \n1.5.0.rc1.gda86\n"}]}