Project

General

Profile

Patch #3836 » redmine-git-no-wc.diff

Michael Vance, 2009-09-08 21:15

View differences:

lib/redmine/scm/adapters/git_adapter.rb
end
def num_revisions
cmd = "#{GIT_BIN} --git-dir #{target('')} log --all --pretty=format:'' | wc -l"
shellout(cmd) {|io| io.gets.chomp.to_i + 1}
cmd = "#{GIT_BIN} --git-dir #{target('')} log --all --pretty=format:''"
num = 1
shellout(cmd) {|io| num += 1}
end
def revisions(path, identifier_from, identifier_to, options={})
(1-1/2)