Range that is used for representing to individual commitish when calculating either git log or git diff.

interface Range {
    fromRevision?: string | number;
    toRevision?: string;
}

Properties

fromRevision?: string | number

Either the from revision (string) or a positive integer that is equivalent to the ~ suffix, which means the commit object that is the fromRevisionth generation ancestor of the named, toRevision commit object, following only the first parents. If not specified, equivalent to origin..toRevision.

toRevision?: string

The last revision that should be included among the result running this query. Here, the revision can be a tag, a commitish, or even an expression (HEAD~3). For more details to specify the revision, see here.