diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-01-31 15:40:06 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-28 14:19:52 +0200 |
commit | e396b43771da1e8d47bf5ce6832adb541ed55b34 (patch) | |
tree | 2339082690f8da0e6fd1a0babc5e38dada31583f /lib | |
parent | 194c88915d76a16008fbdef3b0edd053957bb7cb (diff) | |
download | gitlab-ce-e396b43771da1e8d47bf5ce6832adb541ed55b34.tar.gz |
Remove unused method Gitlab::Git::Repository#commits_since
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 2187dd70ff4..7be2fc7f6f7 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -828,23 +828,6 @@ module Gitlab Rugged::Commit.create(rugged, actual_options) end - def commits_since(from_date) - walker = Rugged::Walker.new(rugged) - walker.sorting(Rugged::SORT_DATE | Rugged::SORT_REVERSE) - - rugged.references.each("refs/heads/*") do |ref| - walker.push(ref.target_id) - end - - commits = [] - walker.each do |commit| - break if commit.author[:time].to_date < from_date - commits.push(commit) - end - - commits - end - AUTOCRLF_VALUES = { "true" => true, "false" => false, |