Revert "[refs #579] save additional info for pull inline comments"

This reverts commit 0de497c30f15720ae3b2f31c19e7ed2fdc390ad2.

Conflicts:

	app/controllers/projects/comments_controller.rb
This commit is contained in:
Alexander Machehin 2012-10-09 20:15:10 +06:00
parent 17e7faff3d
commit e7cd5f008a
1 changed files with 0 additions and 1 deletions

View File

@ -65,7 +65,6 @@ class Projects::CommentsController < Projects::BaseController
if @commentable.class == Issue && pull = @commentable.pull_request
repo = Grit::Repo.new(pull.path)
to_commit, from_commit = pull.common_ancestor, repo.commits(pull.head_branch).first
@comment.data[:to_commit], @comment.data[:from_commit] = to_commit, from_commit
diff = pull.diff repo, to_commit, from_commit
diff_path = diff.select {|d| d.a_path == params[:path]}