<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -513,10 +513,13 @@ EOS
     ## a no-op
   end
 
-  operation :grep, &quot;Show issues matching a string or regular expression&quot;, :string
-  def grep project, config, match
+  operation :grep, &quot;Show issues matching a string or regular expression&quot;, :string do
+    opt :ignore_case, &quot;Ignore case distinctions in both the expression and in the issue data&quot;, :default =&gt; false
+  end
+
+  def grep project, config, opts, match
     run_pager
-    re = /#{match}/
+    re = Regexp.new match, opts[:ignore_case]
     issues = project.issues.select do |i|
       i.title =~ re || i.desc =~ re ||
         i.log_events.map { |time, who, what, comments| comments }.join(&quot; &quot;) =~ re</diff>
      <filename>lib/ditz/operator.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f8bc6b489abeae8b8bb47f17f5ee22cf9db15742</id>
    </parent>
    <parent>
      <id>225be586c6883d98b533c55128efd04096a8636b</id>
    </parent>
  </parents>
  <author>
    <name>moro</name>
    <email>moronatural@gmail.com</email>
  </author>
  <url>http://github.com/moro/ditz/commit/0ac7fdb4596384b2032d925f7688a5bc5acb9351</url>
  <id>0ac7fdb4596384b2032d925f7688a5bc5acb9351</id>
  <committed-date>2008-09-04T17:24:27-07:00</committed-date>
  <authored-date>2008-09-04T17:24:27-07:00</authored-date>
  <message>Merge commit 'mainline/master' into merge_mainline</message>
  <tree>383d52439325e1346d82b23ecc06a172d3d33fbb</tree>
  <committer>
    <name>moro</name>
    <email>moronatural@gmail.com</email>
  </committer>
</commit>
