Method: Git::Lib#git_dir

Defined in:
lib/git/lib.rb

#git_dirPathname (readonly)

The path to the Git repository directory. The default is "#{git_work_dir}/.git".

Returns:

  • (Pathname)

    the Git repository directory.

See Also:

  • repository](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefrepositoryarepository)


29
30
31
# File 'lib/git/lib.rb', line 29

def git_dir
  @git_dir
end