Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Commit

Permalink
Merge 82d08a5 into ca49cdd
Browse files Browse the repository at this point in the history
  • Loading branch information
ryosuzuki committed Jun 1, 2013
2 parents ca49cdd + 82d08a5 commit 5e70c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grit/repo.rb
Expand Up @@ -564,7 +564,7 @@ def log(commit = 'master', path = nil, options = {})
# +b+ is the other commit
# +paths+ is an optional list of file paths on which to restrict the diff
def diff(a, b, *paths)
diff = self.git.native('diff', {}, a, b, '--', *paths)
diff = self.git.native('diff', {:full_index => true}, a, b, '--', *paths)

if diff =~ /diff --git a/
diff = diff.sub(/.*?(diff --git a)/m, '\1')
Expand Down

0 comments on commit 5e70c54

Please sign in to comment.