emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 32ad7342893 4/5: Include lightweight tags in treesit-admin--verif


From: Yuan Fu
Subject: master 32ad7342893 4/5: Include lightweight tags in treesit-admin--verify-major-mode-queries
Date: Mon, 23 Dec 2024 21:53:06 -0500 (EST)

branch: master
commit 32ad7342893833058ca2f7f8eca667bd32d42ea0
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Include lightweight tags in treesit-admin--verify-major-mode-queries
    
    * lisp/treesit.el (treesit--language-git-revision): Include
    lightweight tags as well.
---
 lisp/treesit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index 69b800cb271..e37ea85ebbe 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -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")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]