Skip to content

Commit d478595

Browse files
committed
Merge #18382: doc: note the costs of fetching all pull requests
d695eb4 doc: note the costs of fetching all pull requests (Vasil Dimov) Pull request description: Also mention that it is possible to fetch just one pull request. ACKs for top commit: MarcoFalke: ACK d695eb4 fanquake: ACK d695eb4 Tree-SHA512: afe080fd018b2e773fb974956937e819085831bf0c1c5623f7f12c728639906b80666b785234058ee39fd98115a53a2fad431c54ee0840667e60bb317e4a828d
2 parents 6ec42df + d695eb4 commit d478595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/productivity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ When looking at other's pull requests, it may make sense to add the following se
172172

173173
```
174174
[remote "upstream-pull"]
175-
fetch = +refs/pull/*:refs/remotes/upstream-pull/*
175+
fetch = +refs/pull/*/head:refs/remotes/upstream-pull/*
176176
url = [email protected]:bitcoin/bitcoin.git
177177
```
178178

179-
This will add an `upstream-pull` remote to your git repository, which can be fetched using `git fetch --all` or `git fetch upstream-pull`. Afterwards, you can use `upstream-pull/NUMBER/head` in arguments to `git show`, `git checkout` and anywhere a commit id would be acceptable to see the changes from pull request NUMBER.
179+
This will add an `upstream-pull` remote to your git repository, which can be fetched using `git fetch --all` or `git fetch upstream-pull`. It will download and store on disk quite a lot of data (all PRs, including merged and closed ones). Afterwards, you can use `upstream-pull/NUMBER/head` in arguments to `git show`, `git checkout` and anywhere a commit id would be acceptable to see the changes from pull request NUMBER.
180180

181181
### Diff the diffs with `git range-diff`
182182

0 commit comments

Comments
 (0)