Re: [PATCH v2 1/1] Introduce git add --renormalize .

2017-11-12 Thread Torsten Bögershausen
On Fri, Nov 10, 2017 at 09:22:10AM +0900, Junio C Hamano wrote: > > Taking these altogether, perhaps > > Apply the "clean" process freshly to all tracked files to > forcibly add them again to the index. This is useful after > changing `core.autocrlf` configuration or the `text`

Re: [PATCH v2 1/1] Introduce git add --renormalize .

2017-11-09 Thread Junio C Hamano
Torsten Bögershausen writes: > Here is a somwhat shorter description: > > Apply the "clean" process freshly to all tracked files. > This is useful after changing `core.autocrlf` or the `text` > attributes in the `.gitattributes` file because > Git may not consider these files as

Re: [PATCH v2 1/1] Introduce git add --renormalize .

2017-11-09 Thread Torsten Bögershausen
[] > > If we had such a term in Documentation/glossary-contents.txt, we > could even say > > Add contents of all paths to the index by freshly applying > the "clean" process, even to the ones Git may think are > unmodified in the working tree since they were added the >

Re: [PATCH v2 1/1] Introduce git add --renormalize .

2017-11-07 Thread Junio C Hamano
Torsten Bögershausen writes: >> > +--renormalize:: >> > + Normalizes the line endings from CRLF to LF of tracked files. >> > + This applies to files which are either "text" or "text=auto" >> > + in .gitattributes (or core.autocrlf is true or input) >> > + --renormalize implies

Re: [PATCH v2 1/1] Introduce git add --renormalize .

2017-11-07 Thread Torsten Bögershausen
[snip] > > > @@ -175,6 +175,12 @@ for "git add --no-all ...", i.e. ignored > > removed files. > > warning (e.g., if you are manually performing operations on > > submodules). > > > > +--renormalize:: > > + Normalizes the line endings from CRLF to LF of tracked files. > > + This

Re: [PATCH v2 1/1] Introduce git add --renormalize .

2017-11-06 Thread Junio C Hamano
tbo...@web.de writes: > From: Torsten Bögershausen > > Make it safer to normalize the line endings in a repository: > Files that had been commited with CRLF will be commited with LF. > ... > Helped-By: Junio C Hamano > Signed-off-by: Torsten Bögershausen

[PATCH v2 1/1] Introduce git add --renormalize .

2017-10-30 Thread tboegi
From: Torsten Bögershausen Make it safer to normalize the line endings in a repository: Files that had been commited with CRLF will be commited with LF. The old way to normalize a repo was like this: # Make sure that there are not untracked files $ echo "* text=auto"