New Feature: Git Blame for file
This commit is contained in:
parent
2e54ac17c5
commit
9cd8f7b082
9 changed files with 135 additions and 15 deletions
|
@ -8,7 +8,7 @@ class RefsController < ApplicationController
|
|||
before_filter :require_non_empty_project
|
||||
|
||||
before_filter :ref
|
||||
before_filter :define_tree_vars, :only => [:tree, :blob]
|
||||
before_filter :define_tree_vars, :only => [:tree, :blob, :blame]
|
||||
before_filter :render_full_content
|
||||
|
||||
layout "project"
|
||||
|
@ -62,6 +62,10 @@ class RefsController < ApplicationController
|
|||
return render_404
|
||||
end
|
||||
|
||||
def blame
|
||||
@blame = Grit::Blob.blame(@repo, @commit.id, params[:path])
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def define_tree_vars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue