Sha256: 6acb94e62d2291e1c824bbfa25e689ab8485dd24727a61aea82e2f687a55c3b3
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
module Grit class Diff def old_path GritExt.encode! @a_path end def new_path GritExt.encode! @b_path end def diff lines = @diff.lines.to_a # path encoding is dependent on environment path = GritExt.encode! lines.shift(2).join # diff body encoding is dependent on file encoding body = GritExt.encode! lines.join @diff = path + body end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grit_ext-0.6.1 | lib/grit_ext/diff.rb |