diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-10-15 16:59:48 +0400 |
---|---|---|
committer | Andrey Kumanyaev <me@zzet.org> | 2013-10-21 22:54:37 +0400 |
commit | 6173d0a92f4b8e472d5d71e3518ae5460257d39e (patch) | |
tree | 0024506e1b22d7f6e417587a00d3fb4bc4fc80c0 /app/contexts | |
parent | 5717304098ae81285a5a616fb066e9ae7ea88f54 (diff) | |
download | gitlab-ce-6173d0a92f4b8e472d5d71e3518ae5460257d39e.tar.gz |
Show branches list (which branches contains commit) on commit page
Diffstat (limited to 'app/contexts')
-rw-r--r-- | app/contexts/commit_load_context.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/contexts/commit_load_context.rb b/app/contexts/commit_load_context.rb index 2930c5b1668..0c684976b64 100644 --- a/app/contexts/commit_load_context.rb +++ b/app/contexts/commit_load_context.rb @@ -18,6 +18,7 @@ class CommitLoadContext < BaseContext result[:note] = project.build_commit_note(commit) result[:line_notes] = line_notes result[:notes_count] = project.notes.for_commit_id(commit.id).count + result[:branches] = project.repository.branch_names_contains(commit.id) begin result[:suppress_diff] = true if commit.diff_suppress? && !params[:force_show_diff] |