[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
Sat Feb 20 06:08:32 PST 2021


xgupta created this revision.
xgupta added reviewers: awarzynski, sameeranjoshi.
xgupta requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The current size of the llvm-project repository exceeds 1 GB. A shallow clone can save a lot of space and time. Some developers might not aware of this feature.


Repository:
  rG LLVM Github Monorepo

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,9 @@
    * ``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 time you may want to download the clone with a desire
+     depth, 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.325199.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210220/07681c73/attachment.bin>


More information about the llvm-commits mailing list