Skip to content

index

Get the Index file for this repository.

If a custom index has not been set, the default index for the repository will be returned (the one located in .git/index).

Signature

ts
class Repository {
  index(): Index;
}

Returns

  • Index

    The index file for this repository.

Released under the MIT License.