Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
githubpullrequests [2017/03/01 17:29] – WarnerLoshgithubpullrequests [2017/03/01 21:00] (current) – Add notes (as used by svn2git) to remote example EdMaste
Line 12: Line 12:
  
 Subject to change in the future as resources change and new tooling is created. Please see the %%FreeBSD%% handbook for information on Bugzilla, Phabricator and our code submission standards. Subject to change in the future as resources change and new tooling is created. Please see the %%FreeBSD%% handbook for information on Bugzilla, Phabricator and our code submission standards.
 +
 +===== Fetching pull requests into local repo =====
 +To include pull requests when fetching add the following entry to the appropriate remote config in .git/config: ''%%fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*%%''
 +
 +For example, the full remote entry may look like:
 +
 +<code>
 +[remote "upstream"]
 +        url = https://github.com/freebsd/freebsd
 +        fetch = +refs/heads/*:refs/remotes/upstream/*
 +        fetch = +refs/notes/*:refs/notes/*
 +        fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*
 +</code>
 +
 +After fetching from this remote, individual pull requests can be examined with commands like ''%%git show upstream/pr/104%%'' or ''%%git log ..upstream/pr/104%%''.
  
  • githubpullrequests.1488389375.txt.gz
  • Last modified: 2017/03/01 17:29
  • by WarnerLosh