Files
git/builtin
Torsten Bögershausen 9472935d81 add: introduce "--renormalize"
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" >.gitattributes
 $ git read-tree --empty
 $ git add .
 $ git commit -m "Introduce end-of-line normalization"

The user must make sure that there are no untracked files,
otherwise they would have been added and tracked from now on.

The new "add --renormalize" does not add untracked files:

 $ echo "* text=auto" >.gitattributes
 $ git add --renormalize .
 $ git commit -m "Introduce end-of-line normalization"

Note that "git add --renormalize <pathspec>" is the short form for
"git add -u --renormalize <pathspec>".

While at it, document that the same renormalization may be needed,
whenever a clean filter is added or changed.

Helped-By: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-11-17 10:31:05 +09:00
..
2017-11-17 10:31:05 +09:00
2017-09-10 17:02:51 +09:00
2016-11-22 13:55:20 -08:00
2017-09-06 13:11:25 +09:00
2017-09-28 14:47:53 +09:00
2017-06-24 14:28:41 -07:00
2017-10-07 16:27:55 +09:00
2017-10-03 15:42:49 +09:00
2017-10-07 16:27:55 +09:00
2017-10-07 16:27:55 +09:00
2017-09-29 11:23:43 +09:00
2017-03-31 08:33:56 -07:00
2017-08-26 22:55:09 -07:00
2017-09-29 11:23:43 +09:00
2017-09-25 15:24:09 +09:00
2017-10-18 10:19:08 +09:00
2017-09-25 15:24:07 +09:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-09-19 10:47:57 +09:00
2017-08-03 13:11:02 -07:00
2017-10-07 16:27:55 +09:00
2017-08-26 22:55:09 -07:00
2017-08-22 10:29:03 -07:00
2017-06-24 14:28:41 -07:00
2017-09-19 10:47:55 +09:00
2017-08-03 13:11:02 -07:00
2017-08-22 10:29:03 -07:00
2017-01-23 18:51:56 -08:00
2017-10-18 10:19:08 +09:00
2017-09-19 10:47:55 +09:00
2017-06-24 14:28:41 -07:00