2010-05-11, 01:56
What's the correct core.autocrlf config for the git tree? It looks like I have a related issue.
Immediately after cloning the git repository, git status returns this:
and git diff outputs patches that recreate the whole files (- all lines followed by + all lines, apparently identical). I haven't done anything on the tree yet so it doesn't seem right.
I searched high and low for information and that seems to be about line endings. My core.autocrlf setting is 'true', which seems to be the recommended value on Windows, but there are all these false changes. 'off' silences the false changes but doesn't feel right.
I don't know if this is Windows specific. I'm on Win 7 32 with latest msysgit (1.7.0.2) and quite green with git. That could also be the problem
Ideas anyone?
Immediately after cloning the git repository, git status returns this:
Code:
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: xbmc/visualizations/XBMCProjectM/win32/pthreads/pthread.h
# modified: xbmc/visualizations/XBMCProjectM/win32/pthreads/sched.h
# modified: xbmc/win32/XBMC_PC.rc
# modified: xbmc/win32/my_ntddcdrm.h
# modified: xbmc/win32/pch.h
# modified: xbmc/win32/resource.h
# modified: xbmc/win32/strverscmp.cpp
# modified: xbmc/win32/svn_rev.tmpl
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# status
no changes added to commit (use "git add" and/or "git commit -a")
and git diff outputs patches that recreate the whole files (- all lines followed by + all lines, apparently identical). I haven't done anything on the tree yet so it doesn't seem right.
I searched high and low for information and that seems to be about line endings. My core.autocrlf setting is 'true', which seems to be the recommended value on Windows, but there are all these false changes. 'off' silences the false changes but doesn't feel right.
I don't know if this is Windows specific. I'm on Win 7 32 with latest msysgit (1.7.0.2) and quite green with git. That could also be the problem
Ideas anyone?