Skip to content

Commit d695eb4

Browse files
committed
doc: note the costs of fetching all pull requests
Also, update the example to skip downloading the merge commits when downloading all PRs.
1 parent f2880e2 commit d695eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/productivity.md

+2-2
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)