Module: GitLS

Defined in:
lib/git_ls.rb,
lib/git_ls/version.rb

Overview

rubocop:disable Metrics/ModuleLength

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
'0.5.0'

Class Method Summary collapse

Class Method Details

.files(path = nil) ⇒ Object



12
13
14
15
16
# File 'lib/git_ls.rb', line 12

def files(path = nil)
  path = path ? ::File.join(path, '.git/index') : '.git/index'

  read(path, false)
end