Skip to content

Commit

Permalink
[Diff] More lenient Git first line
Browse files Browse the repository at this point in the history
if you're already in the Git Diff syntax
  • Loading branch information
michaelblyons committed Feb 10, 2025
1 parent f3ad356 commit 5341c70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Git Formats/Git Diff.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -577,3 +577,7 @@ variables:
scissors: (?:>8|8<)
# https://git-scm.com/docs/git-am#_discussion
next_diff_header: '(?=Index: |diff -)'
git_first_line: |-
{{bol}}(?x:
From [ ] [\w.-]+(?:@[\w.-]+)? [ ] {{day3}} [ ] {{month3}} .+
)

0 comments on commit 5341c70

Please sign in to comment.