Module: PathList::GlobalGitignore

Defined in:
lib/path_list/global_gitignore.rb

Class Method Summary collapse

Class Method Details

.path(root:) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/path_list/global_gitignore.rb', line 6

def path(root:)
  gitconfig_gitignore_path(::File.expand_path('.git/config', root)) ||
    gitconfig_gitignore_path(::File.expand_path('~/.gitconfig')) ||
    gitconfig_gitignore_path(xdg_config_path) ||
    gitconfig_gitignore_path('/etc/gitconfig') ||
    default_global_gitignore_path
end