]> git.eshelyaron.com Git - emacs.git/commitdiff
Include lightweight tags in treesit-admin--verify-major-mode-queries
authorYuan Fu <casouri@gmail.com>
Tue, 24 Dec 2024 02:50:08 +0000 (18:50 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Dec 2024 15:29:57 +0000 (16:29 +0100)
* lisp/treesit.el (treesit--language-git-revision): Include
lightweight tags as well.

(cherry picked from commit 32ad7342893833058ca2f7f8eca667bd32d42ea0)

lisp/treesit.el

index 0a4de2d2364511d96bd9cc012bbb1443c0a253a5..3d6eb142ef496bb34bd9c7bd08a68b9ed9f675c7 100644 (file)
@@ -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")))