Class: Avm::Git::Scms::Git
- Inherits:
-
Scms::Base
- Object
- Scms::Base
- Avm::Git::Scms::Git
show all
- Includes:
- Comparable
- Defined in:
- lib/avm/git/scms/git.rb,
lib/avm/git/scms/git/branch.rb,
lib/avm/git/scms/git/commit.rb,
lib/avm/git/scms/git/remote.rb,
lib/avm/git/scms/git/commits.rb,
lib/avm/git/scms/git/remotes.rb,
lib/avm/git/scms/git/branches.rb,
lib/avm/git/scms/git/interval.rb,
lib/avm/git/scms/git/milestones.rb,
lib/avm/git/scms/git/run_commit.rb,
lib/avm/git/scms/git/changed_file.rb,
lib/avm/git/scms/git/commit_dirty.rb,
lib/avm/git/scms/git/changed_files.rb,
lib/avm/git/scms/git/commit/deploy.rb,
lib/avm/git/scms/git/change_tracker.rb,
lib/avm/git/scms/git/commit/deploy_methods.rb
Defined Under Namespace
Modules: Branches, Commits, Milestones, Remotes
Classes: Branch, ChangeTracker, ChangedFile, ChangedFiles, Commit, CommitDirty, Interval, Remote, RunCommit
Constant Summary
collapse
- COMMIT_DIRTY_DEFAULT_MESSAGE =
'Dirty files.'
Instance Method Summary
collapse
Instance Method Details
#<=>(other) ⇒ Object
17
18
19
|
# File 'lib/avm/git/scms/git.rb', line 17
def <=>(other)
git_repo <=> other.git_repo
end
|
#completer(options = {}) ⇒ Avm::Git::Issues::Complete
23
24
25
|
# File 'lib/avm/git/scms/git.rb', line 23
def completer(options = {})
::Avm::Git::Issue::Complete.new(self, options)
end
|
#git_repo ⇒ Object
27
28
29
|
# File 'lib/avm/git/scms/git.rb', line 27
def git_repo
@git_repo ||= ::EacGit::Local.new(path)
end
|
34
35
36
|
# File 'lib/avm/git/scms/git.rb', line 34
def interval(from, to)
::Avm::Git::Scms::Git::Interval.new(self, from, to)
end
|
39
40
41
42
43
|
# File 'lib/avm/git/scms/git.rb', line 39
def subs
git_repo.subrepos.map do |subrepo|
::Avm::Git::Scms::GitSubrepo.new(subrepo.subpath.expand_path(path))
end
end
|
#valid? ⇒ Boolean
45
46
47
|
# File 'lib/avm/git/scms/git.rb', line 45
def valid?
path.join('.git').exist?
end
|