diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-08-10 11:28:42 +0200 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-08-10 13:09:07 +0200 |
commit | 5689e8a0827eb9f09b071bbd4dc74dc2cb0a3e7d (patch) | |
tree | 25bc26dcba645df2bcdef62f2808b0d710689c50 /app/views/projects/diffs | |
parent | 023d4812586faa24cce69715c606b4bf236956e9 (diff) | |
download | gitlab-ce-5689e8a0827eb9f09b071bbd4dc74dc2cb0a3e7d.tar.gz |
Avoid commit lookup on diff_helperexplicit-arguments-on-diff_file_html_data
Diffstat (limited to 'app/views/projects/diffs')
-rw-r--r-- | app/views/projects/diffs/_file.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_file.html.haml b/app/views/projects/diffs/_file.html.haml index f0a86fd6d40..8fbd89100ca 100644 --- a/app/views/projects/diffs/_file.html.haml +++ b/app/views/projects/diffs/_file.html.haml @@ -1,4 +1,4 @@ -.diff-file.file-holder{id: "diff-#{index}", data: diff_file_html_data(project, diff_file)} +.diff-file.file-holder{id: "diff-#{index}", data: diff_file_html_data(project, diff_file.file_path, diff_commit.id)} .file-title{id: "file-path-#{hexdigest(diff_file.file_path)}"} = render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_commit, project: project, url: "#diff-#{index}" |