Skip to content

Commit 60758f3

Browse files
committed
Document Base#grep parameters
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 46e315c commit 60758f3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/git/base.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,15 @@ def lib
209209
# end
210210
# end
211211
#
212+
# @param string [String] the string to search for
213+
# @param path_limiter [String, Array] a path or array of paths to limit the search to or nil for no limit
214+
# @param opts [Hash] options to pass to the underlying `git grep` command
215+
#
216+
# @option opts [Boolean] :ignore_case (false) ignore case when matching
217+
# @option opts [Boolean] :invert_match (false) select non-matching lines
218+
# @option opts [Boolean] :extended_regexp (false) use extended regular expressions
219+
# @option opts [String] :object (HEAD) the object to search from
220+
#
212221
# @return [Hash<String, Array>] a hash of arrays
213222
# ```Ruby
214223
# {

0 commit comments

Comments
 (0)