Skip to content

Commit 8cd4880

Browse files
committed
fix(git): disable commentChar auto to prevent git 3.0 breaking change
Remove commentChar = auto configuration which will be removed in git 3.0. This will break treesiter which doesn't support custom chars and if I use # then Markdown rendering will be broken gbprod/tree-sitter-gitcommit#75 gbprod/tree-sitter-gitcommit#45 gbprod/tree-sitter-gitcommit#79
1 parent 6beeca1 commit 8cd4880

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

config/git/config

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
; https://git-scm.com/docs/git-update-index#_untracked_cache
1616
untrackedCache = true
1717
; hash (#) conflicts with Markdown when I use hub to open PRs etc...
18-
commentChar = auto
18+
; auto will be removed in git 3.0 this will break treesiter which doesn't support
19+
; custom chars and if I use # then Markdown rendering will be broken
20+
; https://github.com/gbprod/tree-sitter-gitcommit/issues/75
21+
; https://github.com/gbprod/tree-sitter-gitcommit/issues/45
22+
; https://github.com/gbprod/tree-sitter-gitcommit/pull/79
23+
; commentChar = auto
1924
hooksPath = ~/.config/git/hooks
2025
pager = delta_
2126
; fsmonitor = true

0 commit comments

Comments
 (0)