Class: Avm::Git::Scms::GitSubBase

Inherits:
Scms::Base
  • Object
show all
Defined in:
lib/avm/git/scms/git_sub_base.rb,
lib/avm/git/scms/git_sub_base/commit.rb,
lib/avm/git/scms/git_sub_base/interval.rb,
lib/avm/git/scms/git_sub_base/changed_file.rb

Direct Known Subclasses

GitSubrepo, GitSubtree

Defined Under Namespace

Classes: ChangedFile, Commit, Interval

Instance Method Summary collapse

Instance Method Details

#changed_filesEnumerable<Avm::Git::Scms::GitSubBase::ChangedFile>



16
17
18
19
20
# File 'lib/avm/git/scms/git_sub_base.rb', line 16

def changed_files
  parent_scm.changed_files.map do |parent_changed_file|
    ::Avm::Git::Scms::GitSubBase::ChangedFile.new(self, parent_changed_file)
  end
end

#interval(from, to) ⇒ Avm::Git::Scms::GitSubBase::Interval



25
26
27
# File 'lib/avm/git/scms/git_sub_base.rb', line 25

def interval(from, to)
  ::Avm::Git::Scms::GitSubBase::Interval.new(self, from, to)
end