Class | Git::Object::AbstractObject |
In: |
lib/git/object.rb
|
Parent: | Object |
mode | [RW] | |
sha | [RW] | |
size | [RW] | |
type | [RW] |
# File lib/git/object.rb, line 14 def initialize(base, sha) @base = base @sha = sha.to_s @size = @base.lib.object_size(@sha) setup end
# File lib/git/object.rb, line 37 def grep(string, path_limiter = nil, opts = {}) default = {:object => @sha, :path_limiter => path_limiter} grep_options = default.merge(opts) @base.lib.grep(string, grep_options) end