Class: Git::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/github_helper/git.rb

Instance Method Summary collapse

Instance Method Details

#stagedObject

A file about to be commited has a type and a sha_index



8
9
10
# File 'lib/github_helper/git.rb', line 8

def staged
  @files.select { |k, f| f.sha_index != "0000000000000000000000000000000000000000" && f.type != nil }
end