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
Post a Comment