Class: Grit::Blob
- Inherits:
-
Object
- Object
- Grit::Blob
- Defined in:
- lib/grit_ext/blob.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.blame(repo, commit, file) ⇒ Object
18 19 20 21 22 |
# File 'lib/grit_ext/blob.rb', line 18 def blame(repo, commit, file) old_blame(repo, commit, file).map do |b,lines| [b, GritExt.encode!(lines.join('\n')).split('\n')] end end |
.old_blame ⇒ Object
16 |
# File 'lib/grit_ext/blob.rb', line 16 alias_method :old_blame, :blame |
Instance Method Details
#data ⇒ Object
11 12 13 |
# File 'lib/grit_ext/blob.rb', line 11 def data GritExt.encode! old_data end |
#old_data ⇒ Object
5 |
# File 'lib/grit_ext/blob.rb', line 5 alias_method :old_data, :data |
#old_name ⇒ Object
4 |
# File 'lib/grit_ext/blob.rb', line 4 alias_method :old_name, :name |