On Sat, Feb 08, 2025 at 12:50:22PM -0800, Ian Eure wrote: > Hi all, > > Vagrant Cascadian <vagr...@debian.org> writes: > > > When working with salsa.debian.org (a gitlab instance) there is a way to > > fetch all the merge requests for a given git repository, so it just > > becomes part of my normal workflow and to some extent works offline. If > > codeberg had a similar feature, that would be great! > > > > Adding this line to the remote in .git/config will make PRs visible locally: > > fetch = +refs/pull/*/head:refs/remotes/origin/pr/* > > Alternately, you can add a separate remote just for PRs: > > [remote "pulls"] > url = g...@codeberg.org:org/reop.git > fetch = +refs/pull/*/head:refs/remotes/pulls/pr/* > > The latter setup can speed some workflows, since you can choose to fetch PRs > or not. > > These work for any Forgejo or Giteainstance, and I believe work the same on > GitHub/GitLab also.
Is there a way to add this my the global gitconfig so that it happens automatically for all remotes from a specific forge? -- Efraim Flashner <efr...@flashner.co.il> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature