Re: [PATCH v8] ls-files: Add eol diagnostics

2015-12-30 Thread Junio C Hamano
Ramsay Jones writes: >> +Show line endings ("eolinfo") and the text/eol attributes >> ("texteolattr") of >> files. >> +"eolinfo" is the file content identification used by Git when >> +the "text" attribute is "auto", or core.autocrlf != false. >> ++ >>

Re: [PATCH v8] ls-files: Add eol diagnostics

2015-12-30 Thread Junio C Hamano
Torsten Bögershausen writes: > Add test cases in t0027, thanks to Junio C Hamano for the optimized > grep-less sed expression. Please drop this part; it is embarrassing. You wouldn't thank all the mentors you have ever had from whom you learned programming in your log messages,

Re: [PATCH v8] ls-files: Add eol diagnostics

2015-12-30 Thread Ramsay Jones
On 30/12/15 12:57, Torsten Bögershausen wrote: > When working in a cross-platform environment, a user wants to > check if text files are stored normalized in the repository and if > .gitattributes are set appropriately. > > Make it possible to let Git show the line endings in the index and > in

[PATCH v8] ls-files: Add eol diagnostics

2015-12-30 Thread Torsten Bögershausen
When working in a cross-platform environment, a user wants to check if text files are stored normalized in the repository and if .gitattributes are set appropriately. Make it possible to let Git show the line endings in the index and in the working tree and the effective text/eol attributes. The

Re: [PATCH v8] ls-files: Add eol diagnostics

2015-12-30 Thread Torsten Bögershausen
>> "binary" binary file >> "text-no-eol" text file without any EOL >> "text-lf" text file with LF >> "text-crlf"text file with CRLF >> "text-crlf-lf" text file with mixed line endings. > If you prefer to have 'text' in there somewhere, how about: > >binary, text-none,