tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
340 stars 97 forks source link

repository size too big #157

Open aryx opened 1 year ago

aryx commented 1 year ago

We're using tree-sitter repositories as submodules in semgrep (see https://github.com/returntocorp/ocaml-tree-sitter-semgrep/blob/main/.gitmodules ) and most repositories are fine except tree-sitter-rust which takes a very long time to clone and update. I usually get connection timeout from github while doing a git submodule update just because of tree-sitter-rust.

Would it be possible to reduce its size or make the submodule update operation faster?

jwnrt commented 4 months ago

If you only need the contents of the repository and not the history, adding shallow = true to a module in .gitmodules can help a lot.