Update GitHub doc to mention that we accepts user branches for Stacked PRs (#73774)

This isn't yet a guide on how to do stacked PRs.
This commit is contained in:
Mehdi Amini 2023-12-05 10:26:44 +08:00 committed by GitHub
parent 89e775ac81
commit 725a04066a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -40,6 +40,11 @@ Getting the Source Code and Building LLVM
``git clone --depth 1 https://github.com/llvm/llvm-project.git``
* You are likely only interested in the main branch moving forward, if
you don't want `git fetch` (or `git pull`) to download user branches, use:
``sed 's#fetch = +refs/heads/\*:refs/remotes/origin/\*#fetch = +refs/heads/main:refs/remotes/origin/main# -i llvm-project/.git/config``
#. Configure and build LLVM and Clang:
* ``cd llvm-project``

View File

@ -17,10 +17,11 @@ participate in the project using GitHub.
Branches
========
Do not create any branches in the llvm/llvm-project repository. This repository
is reserved for official project branches only. We may relax this rule in
the future if needed to support "stacked" pull request, but in that case only
branches being used for "stacked" pull requests will be allowed.
It is possible to create branches that starts with `users/<username>/`, however this is
intended to be able to support "stacked" pull-request. Do not create any branches in the
llvm/llvm-project repository otherwise, please use a fork (see below). User branches that
aren't associated with a pull-request **will be deleted**.
Pull Requests
=============