Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-14 23:54:56 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-14 23:54:56 +0400
commitd29bb23a6896c1c660fe27d1a9bd5dbfde94bf52 (patch)
treefb6785c436495ca7f0a94c952725a0d9a3d7212a /app/helpers/commits_helper.rb
parentb48bb4a77ceb3fec8a361a6836eb6feba71c84c9 (diff)
Update gitlab-grit to newer version with normal diff collection. Show if file mode was changed
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r--app/helpers/commits_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index 62aa6832371..4d27cf2851e 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -216,4 +216,8 @@ module CommitsHelper
link_to(text.html_safe, user_path(user), options)
end
end
+
+ def diff_file_mode_changed?(diff)
+ diff.a_mode && diff.b_mode && diff.a_mode != diff.b_mode
+ end
end