chickadee » git » index-open

index-open repository-or-pathprocedure

It repository-or-path is a repository, index-open returns the repository's index. If it's a string, index-open creates and returns the index at the given path, signaling an error if such an index doesn't exist. It is not possible to open the index of a bare repository, and doing so will result in an exception.