2014-09-02 18:07:02 +05:30
|
|
|
# Controller for viewing a file's blame
|
|
|
|
class Projects::BlameController < Projects::ApplicationController
|
|
|
|
include ExtractsPath
|
|
|
|
|
|
|
|
before_filter :require_non_empty_project
|
2015-04-26 12:48:37 +05:30
|
|
|
before_filter :assign_ref_vars
|
|
|
|
before_filter :authorize_download_code!
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
def show
|
2015-04-26 12:48:37 +05:30
|
|
|
@blame = Gitlab::Git::Blame.new(@repository, @commit.id, @path)
|
|
|
|
@blob = @blame.blob
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|