From bbe34a526294cb2a045a029b221e194815810865 Mon Sep 17 00:00:00 2001 From: Nikolaos Chatzikonstantinou Date: Sat, 9 Apr 2022 04:45:59 +0900 Subject: [PATCH] Improve git clone command in manual By adding `--depth 1`, the command only downloads the latest commit snapshot, thereby saving bandwidth and completing faster. Since the repository is cloned for the purpose of building and installing, it is not important to have the commit history. --- manual.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual.adoc b/manual.adoc index 27d5d961..3673710a 100644 --- a/manual.adoc +++ b/manual.adoc @@ -126,7 +126,7 @@ Both the server and the Code plugin can be installed from source: [source] ---- -$ git clone https://github.com/rust-analyzer/rust-analyzer.git && cd rust-analyzer +$ git clone --depth 1 https://github.com/rust-analyzer/rust-analyzer.git && cd rust-analyzer $ cargo xtask install ---- @@ -165,7 +165,7 @@ You'll need the latest stable version of the Rust toolchain. [source,bash] ---- -$ git clone https://github.com/rust-analyzer/rust-analyzer.git && cd rust-analyzer +$ git clone --depth 1 https://github.com/rust-analyzer/rust-analyzer.git && cd rust-analyzer $ cargo xtask install --server ----