Skip to content

Commit

Permalink
doc: note the costs of fetching all pull requests
Browse files Browse the repository at this point in the history
Also, update the example to skip downloading the merge commits when
downloading all PRs.
  • Loading branch information
vasild committed Mar 31, 2020
1 parent f2880e2 commit d695eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/productivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ When looking at other's pull requests, it may make sense to add the following se

```
[remote "upstream-pull"]
fetch = +refs/pull/*:refs/remotes/upstream-pull/*
fetch = +refs/pull/*/head:refs/remotes/upstream-pull/*
url = [email protected]:bitcoin/bitcoin.git
```

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.
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.

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

Expand Down

0 comments on commit d695eb4

Please sign in to comment.