Reputation: 83
Imagine there is one git user with read access. at the first time he clones a repo on his machine. then he finds out that there is a new bunch of change and do pull the repo (pull request #1).
Some hours later he told to do pull again (pull request #2). so how can he get list of changes between the [latest commits] from these two pulls requests?
Upvotes: 2
Views: 1735
Reputation: 20118
For concrete code changes you can use git diff
.
git diff <sha1 of pull request #1> <sha1 of pull request #2>
Take a look at the documentation.
Upvotes: 2
Reputation: 310993
git log
accepts a range parameter:
git log <1st sha>..<2nd sha>
Upvotes: 1