Method: Git::Lib#git_index_file

Defined in:
lib/git/lib.rb

#git_index_filePathname (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The Git index file used to stage changes (using git add) before they are committed.

Returns:

  • (Pathname)

    the Git index file

See Also:

  • index file](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefindexaindex)


44
45
46
# File 'lib/git/lib.rb', line 44

def git_index_file
  @git_index_file
end