From: Robin Rosenberg Date: Sat, 13 Dec 2008 11:02:07 GMT Subject: Re: [JGIT PATCH 2/2] Add getPatchText functions to obtain the plain-text version of a patch Message-ID: <200812131202.07717.robin.rosenberg.lists@dewire.com> In-Reply-To: <1229136146-15359-2-git-send-email-spearce@spearce.org> lördag 13 december 2008 03:42:26 skrev Shawn O. Pearce: > The conversion from byte[] to String is performed one line at a time, > in case the patch is a character encoding conversion patch for the > file. For simplicity we currently assume UTF-8 still as the default > encoding for any content, but eventually we should support using the > .gitattributes encoding property when performing this conversion. For usefulness we must be able to pass the encoding from outside, e.g. the encoding Eclipse uses, which often is not UTF-8- -- robin