Method: Trahald::Git#body_old
- Defined in:
- lib/trahald/git.rb
#body_old(name) ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/trahald/git.rb', line 45 def body_old(name) first = first_commit return nil unless first d = dirs(name) tree = first.tree file = tree / "#{name}.#{@ext}".force_encoding("ASCII-8BIT") return nil unless file file.data.force_encoding("UTF-8") end |