Skip to content

Commit

Permalink
update tree-sitter-git-commit (#1838)
Browse files Browse the repository at this point in the history
changes:

- any text following a (scissors) is now contained in one (message)
    - this vastly improves performance on large verbose commits:
      no more slowness on huge commits
  • Loading branch information
the-mikedavis authored Mar 19, 2022
1 parent 533cca7 commit cfd992b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "git-commit"
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "066e395e1107df17183cf3ae4230f1a1406cc972" }
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "7ae23de633de41f8f5b802f6f05b6596df6d00c1" }

[[language]]
name = "git-diff"
Expand Down
4 changes: 2 additions & 2 deletions runtime/queries/git-commit/injections.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
((comment (scissors))
(message) @injection.content
(((scissors)
(message) @injection.content)
(#set! injection.include-children)
(#set! injection.language "diff"))

Expand Down

0 comments on commit cfd992b

Please sign in to comment.