commit range
Two revisions joined by dots to name a set of commits, or with git diff to choose which two states to compare.
In more detail
For git log, A..B means commits reachable from B but not from A. For git diff, A..B is the same as A B, while A...B compares B with the merge base of A and B, showing only the changes made on B's side. That three-dot diff is what a pull request review shows.
Example
git diff --name-status HEAD~4...HEAD~2Related terms
- merge base — The newest commit that two branches both contain, the point where their histories split.
- git diff — The command that shows the differences between two of Git's states: the working tree, the staging area, or any two commits.
- revision — Any expression Git accepts as a name for a commit or other object, such as an ID, a branch name, a tag, HEAD or HEAD~2.
Taught in
- Committing, And What A Good Message Says — Advanced Git Internals & Distributed Workflows
- Reading History: log, show And diff — Advanced Git Internals & Distributed Workflows