All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ramsay Jones <ramsay@ramsayjones.plus.com>
To: "Torsten Bögershausen" <tboegi@web.de>,
	"Sebastian Schuberth" <sschuberth@gmail.com>,
	git@vger.kernel.org
Subject: Re: [PATCH v3] ls-files: Add eol diagnostics
Date: Tue, 24 Nov 2015 16:45:02 +0000	[thread overview]
Message-ID: <5654940E.90207@ramsayjones.plus.com> (raw)
In-Reply-To: <5653474E.6050909@web.de>



On 23/11/15 17:05, Torsten Bögershausen wrote:
> On 22.11.15 09:20, Sebastian Schuberth wrote:
>> On 21.11.2015 08:36, Torsten Bögershausen wrote:
>>
>>> git ls-files --eol gives an output like this:
>>>
>>> i/text-no-eol   w/text-no-eol   attr/text=auto t/t5100/empty
>>
>> I'm sorry if this has been discussed before, but hav you considered to use a header line and omit the prefixed from the columns instead? Like
>>
>> index         working tree     attributes    file
>>
>> binary        binary           -text         t/test-binary-2.png
>> text-lf       text-lf          eol=lf        t/t5100/rfc2047-info-0007
>> text-lf       text-crlf        eol=crlf      doit.bat
>> text-crlf-lf  text-crlf-lf                   locale/XX.po
>>
>> I believe this would be both easier to read for humans, and easier to parse for scripts that e.g. want to compare line endings in the index and working tree.
>>
> The problem I see is to make sure that there is always a separator, even when a field empty:
> 
> rm zlib.c; git ls-file --eol #will include a line like this:
> i/text-lf       w/              attr/          zlib.c
> 
> or, as another example:
> git ls-files -o --eol
> i/              w/binary        attr/          zlib.o
> 

[I have been trying *not* to respond to this thread, since
the following comment is classic bikeshedding on the naming
of things and I am, in general, hopeless at naming things ... :-D ]

<bikeshedding>
I don't think you need to include 'text' in the name of the
line ending descriptors - if its not binary then its some
form of text. So, maybe something like:

    binary
    none
    lf
    crlf
    mixed

</bikeshedding>

HTH

ATB,
Ramsay Jones

  parent reply	other threads:[~2015-11-24 16:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-21  7:36 [PATCH v3] ls-files: Add eol diagnostics Torsten Bögershausen
2015-11-22  8:20 ` Sebastian Schuberth
2015-11-23 17:05   ` Torsten Bögershausen
2015-11-23 19:45     ` Sebastian Schuberth
2015-11-23 20:00       ` Eric Sunshine
2015-11-24 16:45     ` Ramsay Jones [this message]
2015-11-23 17:27 ` Eric Sunshine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5654940E.90207@ramsayjones.plus.com \
    --to=ramsay@ramsayjones.plus.com \
    --cc=git@vger.kernel.org \
    --cc=sschuberth@gmail.com \
    --cc=tboegi@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.