Method: Git::EscapedPath#unescape
- Defined in:
- lib/git/escaped_path.rb
#unescape
Convert an escaped path to an unescaped path
36 37 38 39 40 |
# File 'lib/git/escaped_path.rb', line 36 def unescape bytes = escaped_path_to_bytes(path) str = bytes.pack('C*') str.force_encoding(Encoding::UTF_8) end |