lib/git/lint/branches/environments/local.rb in git-lint-1.4.0 vs lib/git/lint/branches/environments/local.rb in git-lint-2.0.0
- old
+ new
@@ -4,24 +4,24 @@
module Lint
module Branches
module Environments
# Provides local build environment feature branch information.
class Local
- def initialize repo: Git::Kit::Repo.new
- @repo = repo
+ def initialize repository: GitPlus::Repository.new
+ @repository = repository
end
def name
- repo.branch_name
+ repository.branch_name
end
- def shas
- repo.shas start: "master", finish: name
+ def commits
+ repository.commits "master..#{name}"
end
private
- attr_reader :repo
+ attr_reader :repository
end
end
end
end
end