Selecting the revision range
Now that you can specify individual revisions in multiple ways, let’s learn how to specify ranges of revisions, a subset of the DAG we want to examine. Revision ranges are particularly useful for viewing selected parts of the history of a project.
For example, you can use range specifications to answer questions such as, “What work is on this branch that I haven’t yet merged into my main branch?”, “What works on my main branch I haven’t yet published?”, or simply “What was done on this branch since its creation?”
Single revision as a revision range
History traversing commands such as git log
operate on a set of commits, walking down a chain of revisions from child to parent. These kinds of commands, given a single revision as an argument (as described in the Single revision selection section of this chapter), will show the set of commits that can be reached from that revision, following...