From: Jeff King Date: Sun, 06 Jun 2010 22:03:05 GMT Subject: Re: [PATCH 1/4] diff/xdiff: refactor EOF-EOL detection Message-ID: <20100606220304.GC6993@coredump.intra.peff.net> In-Reply-To: <7vpr060ys0.fsf@alter.siamese.dyndns.org> On Fri, Jun 04, 2010 at 11:38:39PM -0700, Junio C Hamano wrote: > It can be done by defining a custom textconv filter that adds a trailing > LF to a blob that ends in an incomplete line, and what your patch 3/4 does > is essentially to create such a built-in textconv filter and *force* users > to use it unconditionally for all paths unless the user explicitly asks > not to use *any* textconv. Side note: it would be kind of cool to have .gitattributes selectable on file mode, so you could implement this feature entirely as a textconv on symlinks. And then you could pretty-print them however you liked. That may be going overboard, though. -Peff