Sha256: 96d6dabd46e141fe4fa9b242b7ea45a98a1b052d988bf19c660d3ea4621d5b96

Contents?: true

Size: 297 Bytes

Versions: 37

Compression:

Stored size: 297 Bytes

Contents

module OhlohScm::Adapters
	class GitAdapter < AbstractAdapter
		def cat_file(commit, diff)
			cat(diff.sha1)
		end

		def cat_file_parent(commit, diff)
			cat(diff.parent_sha1)
		end

		def cat(sha1)
			return '' if sha1 == NULL_SHA1
			run "cd '#{url}' && git cat-file -p #{sha1}"
		end
	end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ohloh_scm-2.5.1 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.14 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.13 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.12 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.11 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.10 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.9 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.8 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.7 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.6 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.5 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.4 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.3 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.1 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.4.0 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.3.5 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.3.4 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.3.2 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.3.1 lib/ohloh_scm/adapters/git/cat_file.rb
ohloh_scm-2.3.0 lib/ohloh_scm/adapters/git/cat_file.rb