Re: [PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-19 Thread Junio C Hamano
Torsten Bögershausen writes: > I like this idea: > > binary > text > crlf > mixed > lf If you really like it, it would mean that my attempt to use Socratic method to enlighten you why the above is not a good idea failed X-<. > > $ git ls-files --eol-staged -s >

Re: [PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-18 Thread Torsten Bögershausen
On 18/10/15 21:00, Junio C Hamano wrote: Torsten Bögershausen writes: Make it possible to show the line endings of files. Files which are staged and/or files in the working tree: git ls-files --eol-staged git ls-files --eol-worktree Two unrelated (to the issues raised in

Re: [PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-18 Thread Junio C Hamano
Junio C Hamano writes: > If you say 1 and 2 are with LF, 4 and 6 are with CRLF, eveyrything > else is mixed, then you are losing the distinction between 1 and 2 > (and 4 and 6) that you made when the files were a single liner (with > or without the incomplete line ending). Is

Re: [PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-18 Thread Junio C Hamano
Torsten Bögershausen writes: > Make it possible to show the line endings of files. > Files which are staged and/or files in the working tree: > > git ls-files --eol-staged > git ls-files --eol-worktree Two unrelated (to the issues raised in other review responses) issues in the

Re: [PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-18 Thread Philip Oakley
From: "Torsten Bögershausen" Make it possible to show the line endings of files. Files which are staged and/or files in the working tree: git ls-files --eol-staged git ls-files --eol-worktree Both will show an output like this: emptyempty_file bin

Re: [PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-18 Thread Junio C Hamano
Torsten Bögershausen writes: > Make it possible to show the line endings of files. > Files which are staged and/or files in the working tree: > > git ls-files --eol-staged > git ls-files --eol-worktree > > Both will show an output like this: > > emptyempty_file > bin

Re: [PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-17 Thread Eric Sunshine
On Sat, Oct 17, 2015 at 4:18 PM, Torsten Bögershausen wrote: > Make it possible to show the line endings of files. > Files which are staged and/or files in the working tree: > > git ls-files --eol-staged > git ls-files --eol-worktree > > Both will show an output like this: > >

[PATCH] Add ls-files --eol-staged, --eol-worktree

2015-10-17 Thread Torsten Bögershausen
Make it possible to show the line endings of files. Files which are staged and/or files in the working tree: git ls-files --eol-staged git ls-files --eol-worktree Both will show an output like this: emptyempty_file bin binary_file_or_with_cr_handled_as_binary txt-crlf