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:
Yuan Fu 2024-12-23 18:50:08 -08:00
parent 4def541bbf
commit 32ad734289
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -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")))