Sha256: 0117010ac43763417f1fbd65480cd6097a2e7958568f60ac42b51f51718fb918
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
module OhlohScm::Adapters class GitSvnAdapter < AbstractAdapter def cat_file(commit, diff) cat(git_commit(commit), diff.path) end def cat_file_parent(commit, diff) cat("#{ git_commit(commit) }^", diff.path) end private def cat(revision, file_path) file_path = %Q{#{file_path}} run("cd #{self.url} && git show #{ revision }:#{ file_path.shellescape }").strip end def git_commit(commit) run("cd #{self.url} && git svn find-rev r#{commit.token}").strip end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.5.1 | lib/ohloh_scm/adapters/git_svn/cat_file.rb |
ohloh_scm-2.4.14 | lib/ohloh_scm/adapters/git_svn/cat_file.rb |