I downloaded a github repo, created a project in eclipse, pushed the project contents to a server via a metadata API, did some work etc. Its possible that the metadata API process might have modified my files in some way because now in Sourcetree I'm seeing all of my repo files in the 'Show Modified' filter list. When I click on any of them that I didn't manually change the diff window says 'unmodified file'. Any idea what would cause this or how to filter these out?
Permission changes and whitespace changes (newlines in particular) count as modifications, but diffing will show no difference for either of these situations.
Take a look at this documentation on workarounds for whitespace changes: http://git-scm.com/book/ch7-1.html#Formatting-and-Whitespace
Wouldn't whitespace changes show up with the Ignore Whitespace box unchecked?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Theoretically, yes. I'm still convinced that it's a line ending problem considering the symptoms of the problem. Sourcetree is probably just inherting its behavior from your git config.
Do you see the same thing on the command line if you run 'git status'? If so, what do you see when you run 'git diff <modified_file>'?
What OS are you working on? Are you working with a team that uses other OSes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when i run git status it shows them all as modified
If I do a git diff for a specific file I see : 'warning: LF will be replaced with CRLF ... the file will have its original line endings in your working directory'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you run 'git config --global core.autocrlf false', the warnings should go away.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Always happy to help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the link in the answer seems to be outdated. see http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Formatting-and-Whitespace
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.