[PATCH] D48494: [doc] Show the git config for Windows to do line-endings correctly

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 13:01:09 PDT 2018


probinson updated this revision to Diff 153159.
probinson added a comment.

Recommend `false` instead of `input`.


https://reviews.llvm.org/D48494

Files:
  llvm/docs/GettingStarted.rst


Index: llvm/docs/GettingStarted.rst
===================================================================
--- llvm/docs/GettingStarted.rst
+++ llvm/docs/GettingStarted.rst
@@ -492,8 +492,16 @@
 Git mirrors are available for a number of LLVM subprojects. These mirrors sync
 automatically with each Subversion commit and contain all necessary git-svn
 marks (so, you can recreate git-svn metadata locally). Note that right now
-mirrors reflect only ``trunk`` for each project. You can do the read-only Git
-clone of LLVM via:
+mirrors reflect only ``trunk`` for each project.
+
+.. note::
+
+  On Windows, first you will want to do ``git config --global core.autocrlf
+  false`` before you clone. This goes a long way toward ensuring that
+  line-endings will be handled correctly (the LLVM project mostly uses Linux
+  line-endings).
+
+You can do the read-only Git clone of LLVM via:
 
 .. code-block:: console
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48494.153159.patch
Type: text/x-patch
Size: 912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/a72bef85/attachment.bin>


More information about the llvm-commits mailing list