Module: DataKitten::Origins::Git

Defined in:
lib/data_kitten/origins/git.rb

Overview

Git origin module. Automatically mixed into Dataset for datasets that are loaded from Git repositories.

See Also:

Instance Method Summary collapse

Instance Method Details

#change_historyObject

A history of changes to the Dataset, taken from the full git changelog



28
29
30
31
32
# File 'lib/data_kitten/origins/git.rb', line 28

def change_history
  @change_history ||= begin
    repository.log.map{|commit| commit}
  end
end

#originSymbol

The origin type of the dataset.

Returns:

  • (Symbol)

    :git

See Also:



22
23
24
# File 'lib/data_kitten/origins/git.rb', line 22

def origin
  :git
end