Skip to content
Projects

gbprod/tree-sitter-gitcommit

View on GitHub

gbprod/tree-sitter-gitcommit has 89 GitHub stars and 12 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 16:01 UTC. Last push 2026-09-08.

How these counts are measured

What you can do

  • Support for Conventional Commits specifications.
  • Support for different locales / languages. See Supported locales for a full list.

Measured star growth

in 24h
0
in 7 days
Update delayed
in 15 days
Update delayed
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

A tree-sitter grammar for gitcommit messages

Developer Tools

README.md

Original

tree-sitter-gitcommit

Build/test

gitcommit grammar for tree-sitter.

Features

Supported locales

We aim to support all the locales supported by git. The currently supported locales are listed below:

  • en: English
  • bg: Bulgarian
  • ca: Catalan
  • de: German
  • el: Greek
  • es: Spanish
  • fr: French
  • id: Indonesian (Bahasa)
  • it: Italian
  • ko: Korean
  • pl: Polish
  • pt_PT: Portugal Portugese
  • ru: Russian
  • sv: Swedish
  • tr: Turkish
  • vi: Vietnamese
  • zh_CN: Chinese (Simplified)
  • zh_TW: Taiwanese Mandarin

Note about injected languages

This parser only parses git commit subject, message and generated comments, it doesn't handle diff and git rebase information that could be included. To handle that, you must have diff and git_rebase tree-sitter grammars installed and add injection queries.

If you're using Neovim and nvim-treesitter, you just have to be sure that diff and git_rebase are installed (using TSInstall diff git_rebase for example).

Upgrade translations

There is python script to upgrade translations from git source code. It will search for all translations in all tagged versions of git from the v2.30.2. So this parser should be compatible with all git versions from v2.30.2.

To upgrade translations, run:

python parse-lang.py

License

This project is licensed under the MIT License.

Credits