Method: Gitgo::Controllers::Code#commit_grep

Defined in:
lib/gitgo/controllers/code.rb

#commit_grepObject



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/gitgo/controllers/code.rb', line 105

def commit_grep
  options = grep_opts(
    :author => request['author'],
    :committer => request['committer'],
    :grep => request['grep'],
    :regexp_ignore_case => request['regexp_ignore_case'] == 'true',
    :fixed_strings => request['fixed_strings'] == 'true',
    :all_match => request['all_match'] == 'true',
    :max_count => request['max_count'] || '10'
  )
  
  selected = []
  git.commit_grep(options, treeish) {|sha| selected << sha }
  
  erb :commit_grep, :locals => options.merge!(
    :selected => selected
  )
end