summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorJonathan Schoeffling <jonathan.schoeffling@lmco.com>2015-06-14 18:04:20 -0400
committerMichael Chmielewski <code@mikec.123mail.org>2015-10-28 22:34:39 -0400
commit5a5069969ce8e9184e36abbb7623bf474d5869e9 (patch)
treead20f6d4f79b67a26a6237e95e37b1af42517970 /app/views/layouts
parent8c9e1df98eb45e3305ab5badc6727580e84d36e0 (diff)
downloadgitlab-ce-5a5069969ce8e9184e36abbb7623bf474d5869e9.tar.gz
Add support for searching commit log messages
Include the log messages of recent commits in project-level search results, providing functionality similar to 'git log --grep'. Update repository model rspec tests to validate the output of Repository#commits_with_log_matching.
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/_search.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml
index ceb64ce3157..d1aa8f62463 100644
--- a/app/views/layouts/_search.html.haml
+++ b/app/views/layouts/_search.html.haml
@@ -11,6 +11,8 @@
= hidden_field_tag :scope, 'merge_requests'
- elsif current_controller?(:wikis)
= hidden_field_tag :scope, 'wiki_blobs'
+ - elsif current_controller?(:commits)
+ = hidden_field_tag :scope, 'commits'
- else
= hidden_field_tag :search_code, true