git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v11] ls-files: add eol diagnostics

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 15, 2016, 04:51 UTC
Message-ID
<56987AD7.2050707@web.de>
In-Reply-To
<xmqqr3hkj6q1.fsf@gitster.mtv.corp.google.com>

On 01/14/2016 08:34 PM, Junio C Hamano wrote: (OK with the rest of the comments, thanks)

Show 17 quoted lines
> +		return "binary";
> It is true and correct that we do not do EOL conversion on text
> files that have a lone CR, but I think it is misleading to tell the
> users that such files are "binary".  We do not refrain from showing
> the textual diff for such files, for example.
>
> To put it another way, we do not do EOL conversion for truly
> 'binary' files, but there are (mostly) text files that are not
> binary that we do not do EOL conversion on.  And you want to tell
> the user if EOL conversion would happen to each file.  It is not
> correct to label "this file is binary" merely because you do not do
> EOL conversion.  Perhaps define a new "literal" class that is a
> superset of "binary" and use that as the label?  I am not suggesting
> that "ls-files --eol" should show "i/binary" for truly binary files
> and "i/literal" for a non-binary file with lone CRs.  For the
> purpose of "--eol", you only care about "literal", so you do not
> even have to have "binary" class at all.
This makes sense, how about "-text" ?
Previous: Junio C Hamano
Message 3 of 3 in “ls-files: add eol diagnostics”
  1. ls-files: add eol diagnosticstboegi@web.de, Jan 14, 2016
  2. Junio C HamanoJan 14, 2016
  3. Torsten BögershausenJan 15, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.