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~2

Related terms

Taught in

References