Skip to content

Commit

Permalink
Fix #2 (diff support for verbose commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkkk committed Jan 7, 2016
1 parent d0a2406 commit b8f564f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions commit-message.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ patterns:
'2': { name: 'entity' }
'3': { name: invalid.deprecated.line-too-long.git-commit }
'4': { name: invalid.illegal.line-too-long.git-commit }
end: (?=xxxxxx)123457
end: (?=^# \-+ \>8 \-+$)|(?=xxxxxx)123457
patterns:
- comment: capture the second line
begin: ^(()|(.*\s*))$
beginCaptures:
'3': { name: invalid.illegal.line-too-long.git-commit }
end: (?=xxxxxx)123458
end: (?=^# \-+ \>8 \-+$)|(?=xxxxxx)123458
patterns:
- name: commit-text.git-commit
match: ^(?:(?!#))((.{0,72})(.*))$\n?
Expand Down
6 changes: 3 additions & 3 deletions commit-message.tmLanguage
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
Expand Down Expand Up @@ -58,7 +58,7 @@
<key>comment</key>
<string>Capture the whole commit message to test the length of the first line. NB the end pattern is just something to be never matched so the capture continues until the end of the file.</string>
<key>end</key>
<string>(?=xxxxxx)123457</string>
<string>(?=^# \-+ \&gt;8 \-+$)|(?=xxxxxx)123457</string>
<key>name</key>
<string>first-line.git-commit</string>
<key>patterns</key>
Expand All @@ -77,7 +77,7 @@
<key>comment</key>
<string>capture the second line</string>
<key>end</key>
<string>(?=xxxxxx)123458</string>
<string>(?=^# \-+ \&gt;8 \-+$)|(?=xxxxxx)123458</string>
<key>patterns</key>
<array>
<dict>
Expand Down

0 comments on commit b8f564f

Please sign in to comment.