Skip to content

Commit db1c2c9

Browse files
kenprattschacon
authored andcommitted
Allow more powerful grepping in Base grep method.
Signed-off-by: Scott Chacon <schacon@gmail.com>
1 parent 81e80b0 commit db1c2c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ def lib
239239
# puts "\t line #{match[0]}: '#{match[1]}'"
240240
# end
241241
# end
242-
def grep(string)
243-
self.object('HEAD').grep(string)
242+
def grep(string, path_limiter = nil, opts = {})
243+
self.object('HEAD').grep(string, path_limiter, opts)
244244
end
245245

246246
# returns a Git::Diff object

0 commit comments

Comments
 (0)