From: Yuan Fu Date: Tue, 24 Dec 2024 02:50:08 +0000 (-0800) Subject: Include lightweight tags in treesit-admin--verify-major-mode-queries X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e5b4a6288d19c1153667bcafbc3088ac5f8a3065;p=emacs.git Include lightweight tags in treesit-admin--verify-major-mode-queries * lisp/treesit.el (treesit--language-git-revision): Include lightweight tags as well. (cherry picked from commit 32ad7342893833058ca2f7f8eca667bd32d42ea0) --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 0a4de2d2364..3d6eb142ef4 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -4005,7 +4005,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")))