Skip to content

push

Mark a commit to start traversal from.

The given OID must belong to a commitish on the walked repository.

The given commit will be used as one of the roots when starting the revision walk. At least one commit must be pushed onto the walker before a walk can be started.

Signature

ts
class Revwalk {
  push(oid: string): this;
}

Parameters

  • oidrequired · string

    OID which belong to a commitish on the walked repository.

Released under the MIT License.