From: Junio C Hamano Date: Fri, 28 Oct 2011 00:03:29 GMT Subject: Re: [PATCH 00/22] Refactor to accept NUL in commit messages Message-ID: <7v1utyx9ri.fsf@alter.siamese.dyndns.org> In-Reply-To: <20111027234429.GA28187@sigill.intra.peff.net> Jeff King writes: > My interest is to make things like bare-repository diff (and everything > built on it; i.e., things like github, gitweb, or whatever) do the sane > thing for these people, even if I think what they're doing is wrong. I do not think we are talking about right or wrong. I was primarily saying that textconv may not be the right thing (think github/gitweb showing blob contents, nicely formatted inside the chrome the site provides). The solution you suggested feels like a gross layering violation, unless we do it everywhere, in which case I wouldn't mind too much. We have in-repository representation that diff and grep and friends work on, and output conversion layer that externalizes the result of them in the form of "smudge". Another layer above the in-repository representation and below operations could convert UTF-16 to UTF-8 when going outward and in the opposite when going inward.