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`
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
[]
>
> 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
>
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
[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
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
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"
7 matches
Mail list logo