File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,14 @@ Getting the Source Code and Building LLVM
42
42
43
43
``git clone --depth 1 https://github.com/llvm/llvm-project.git ``
44
44
45
- * You are likely only interested in the main branch moving forward, if
46
- you don't want `git fetch ` (or `git pull `) to download user branches, use:
45
+ * You are likely not interested in the user branches in the repo (used for
46
+ stacked pull-requests and reverts), you can filter them from your
47
+ `git fetch ` (or `git pull `) with this configuration:
47
48
48
- ``sed 's#fetch = +refs/heads/\*:refs/remotes/origin/\*#fetch = +refs/heads/main:refs/remotes/origin/main#' -i llvm-project/.git/config ``
49
+ .. code-block :: console
50
+
51
+ git config --add remote.origin.fetch '^refs/heads/users/*'
52
+ git config --add remote.origin.fetch '^refs/heads/revert-*'
49
53
50
54
#. Configure and build LLVM and Clang:
51
55
You can’t perform that action at this time.
0 commit comments