git - Why are files with CRLF not available to add to the index when normalizing? -


so i've been following instructions of various pages covering end of line normalization.

.gitattributes contains following , has been committed.

* text=auto  core.autocrlf = input  core.eol unset (defaults native) 

my objective normalize text files in repository contain lf's , future checkins same.

what find files exist in working area (this after deleting working files , performing git reset --hard) contain crlf not listed when perform "git status".

i can checkout branch return branch , (this inconsistent) file listed ought committed.

it gets more interesting...

after commit files git notes converting crlf's lf's, checkout branch, checkout first branch again , whole new set of files listed via get status indicating have crlf's normalized lf's. why weren't these caught first time?

it seems files, on checkout, leak through cr , not flagged needing committed (sometimes).

am missing something? (or, rather, missing?)

using git 1.8.3.2 on mac os x


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -