git: refine regexp for elisp diff hunk headings

This commit is contained in:
Protesilaos Stavrou 2021-02-10 09:59:47 +02:00
parent 202dec81b7
commit 88ddd73b3a
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,3 @@
*.lisp diff=lisp
*.el diff=lisp
*.el diff=elisp
*.org diff=org
*.md diff=markdown

View file

@ -13,7 +13,7 @@
rebase = false
[format]
thread = true
[diff "lisp"]
xfuncname = "^(\\(.*)$"
[diff "elisp"]
xfuncname = "^\\([^[:space:]]*def[^[:space:]]+[[:space:]]+([^()[:space:]]+)"
[diff "org"]
xfuncname = "^(\\*+ +.*)$"