Include lightweight tags in treesit-admin--verify-major-mode-queries
* lisp/treesit.el (treesit--language-git-revision): Include lightweight tags as well.
This commit is contained in:
parent
4def541bbf
commit
32ad734289
1 changed files with 1 additions and 1 deletions
|
@ -4013,7 +4013,7 @@ Return the output of \"git describe\". If anything goes wrong, return
|
|||
nil."
|
||||
(with-temp-buffer
|
||||
(cond
|
||||
((eq 0 (call-process "git" nil t nil "describe"))
|
||||
((eq 0 (call-process "git" nil t nil "describe" "--tags"))
|
||||
(string-trim (buffer-string)))
|
||||
((eq 0 (progn (erase-buffer)
|
||||
(call-process "git" nil t nil "rev-parse" "HEAD")))
|
||||
|
|
Loading…
Add table
Reference in a new issue