Encode/decode index and tree entries using UTF-8
commita4b98ed15ea5f165a7aa0f2fd2ea6fcce6710925
authorRobin Rosenberg <robin.rosenberg.lists@dewire.com>
Sun, 19 Oct 2008 18:24:24 +0000 (19 20:24 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 30 Oct 2008 17:23:29 +0000 (30 10:23 -0700)
tree3af8f5edc0b5b8e3ce99203d63e0a00b46751049
parentf9c35241e225a4c67fcc7f7eeffa2c0a60d9cdf5
Encode/decode index and tree entries using UTF-8

Decoding uses the same strategy as for commit messages and other string
entities. Encoding is always done in UTF-8. This is incompatible with
Git for non-unicode unices, but it leads to the expected behavior on
Windows and cross-locale sharing of repositories.

Signed-off-by: Robin Rosenberg <robin.rosnberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/GitIndex.java
org.spearce.jgit/src/org/spearce/jgit/lib/Tree.java
org.spearce.jgit/src/org/spearce/jgit/lib/TreeEntry.java
org.spearce.jgit/src/org/spearce/jgit/util/RawParseUtils.java