Skip to content

reflogRename ​

Rename a reflog.

Signature ​

ts
class Repository {
  reflogRename(oldName: string, newName: string): void;
}

Parameters ​

  • oldNamerequired · string

    Old name of the reference.

  • newNamerequired · string

    New name of the reference.

Errors ​

  • Error

    Throws error if renaming fails.

Released under the MIT License.