[PATCH] D97118: [Docs] Mention clone depth feature of git in LLVM getting started

Shivam Gupta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 22 04:47:42 PST 2021


xgupta updated this revision to Diff 325418.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97118/new/

https://reviews.llvm.org/D97118

Files:
  llvm/docs/GettingStarted.rst


Index: llvm/docs/GettingStarted.rst
===================================================================
--- llvm/docs/GettingStarted.rst
+++ llvm/docs/GettingStarted.rst
@@ -38,6 +38,10 @@
    * ``git clone https://github.com/llvm/llvm-project.git``
    * Or, on windows, ``git clone --config core.autocrlf=false
      https://github.com/llvm/llvm-project.git``
+   * To save storage and speed-up the checkout time, you may want to do a 
+     `shallow clone <https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt>`_. 
+     For example, to get the latest revision of the LLVM project, use 
+     ``git clone --depth 1 https://github.com/llvm/llvm-project.git``
 
 #. Configure and build LLVM and Clang:
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97118.325418.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210222/c102b379/attachment.bin>


More information about the llvm-commits mailing list