emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter introduction documentation


From: Philip Kaludercic
Subject: Re: Tree-sitter introduction documentation
Date: Fri, 30 Dec 2022 15:54:11 +0000

Eli Zaretskii <eliz@gnu.org> writes:

>           (message "Cloning repository")
>           ;; git clone xxx --depth 1 --quiet workdir
>           (treesit--call-process-signal
>            "git" nil t nil "clone" url "--depth" "1" "--quiet"
>            workdir)
>
> Why "--depth 1"?  This should be a defcustom, and the default should
> be to clone the full repository, IMO.  Also, what about updating the
> library when it is already installed, and the Git repository already
> exists for it?  Or are we going to clone anew each time and them
> remove the repository? that could make its cloning be slow in some
> cases.

I have proposed just downloading a tarball.  GitHub provides these for
each tag, and the tree-sitter developers appear to tag versions on a
regular basis.  The file could then be downloaded via url.el instead of
using Git.

  https://github.com/tree-sitter/tree-sitter-c/archive/refs/tags/v0.20.2.tar.gz



reply via email to

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