Skip to content

Unable to revert merge commit because RevertOptions cannot be passed in NodeGit #1597

Description

@kevin-tla

I am trying to revert a branch commit by using the Revert.revert() and trying to pass in the RevertOptions, but I am unable to create that instance to give it the necessary values. I get a "Property 'RevertOptions' does not exist on type 'typeof'...".

I am using Typescript. I wrote it as:

const revertOpts = new NodeGit.RevertOptions();

and get that error, however I have no problems when creating an instance of MergeOptions. Also noticed that RevertOptions is also an interface while MergeOptions is a class

Am I doing this correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions