Skip to content

pushGlob

Push matching references.

The OIDs pointed to by the references that match the given glob pattern will be pushed to the revision walker.

Signature

ts
class Revwalk {
  pushGlob(glob: string): this;
}

Parameters

  • globrequired · string

    A leading 'refs/' is implied if not present as well as a trailing / \ * if the glob lacks '?', ' \ *' or '['. Any references matching this glob which do not point to a commitish will be ignored.

Released under the MIT License.