Re: wrong handling of text git attribute leading to files incorrectly reported as modified

2014-04-16 Thread Holger Hellmuth
Am 11.04.2014 22:20, schrieb Frank Ammeter: #!/bin/bash # creating a git repo "repo" rm -rf repo mkdir repo cd repo git init # committing gitattributes with text attribute set for all files echo "* text" > .gitattributes git add .gitattributes git commit -m "added .gitattributes" # add a file wit

Re: wrong handling of text git attribute leading to files incorrectly reported as modified

2014-04-16 Thread Junio C Hamano
Frank Ammeter writes: > Am 15.04.2014 um 23:23 schrieb Junio C Hamano : > >> Brandon McCaig writes: >> >>> That is for your benefit, and for easily sharing that configuration >>> with collaborators. Git only cares that the file exists in your >>> working tree at run-time. >> >> It is a lot mor

Re: wrong handling of text git attribute leading to files incorrectly reported as modified

2014-04-16 Thread Frank Ammeter
Am 15.04.2014 um 23:23 schrieb Junio C Hamano : > Brandon McCaig writes: > >> That is for your benefit, and for easily sharing that configuration >> with collaborators. Git only cares that the file exists in your >> working tree at run-time. > > It is a lot more than "for sharing". If you made

Re: wrong handling of text git attribute leading to files incorrectly reported as modified

2014-04-15 Thread Junio C Hamano
Brandon McCaig writes: > That is for your benefit, and for easily sharing that configuration > with collaborators. Git only cares that the file exists in your > working tree at run-time. It is a lot more than "for sharing". If you made .gitignore only effective after it gets committed, you cann

Re: wrong handling of text git attribute leading to files incorrectly reported as modified

2014-04-15 Thread Brandon McCaig
Frank: On Sat, Apr 12, 2014 at 7:29 AM, Frank Ammeter wrote: > I don’t see that argument. > I don’t know why at the time of a commit git should read unstaged files from > my working tree - that affect my commit. .gitignore works the exact same way. If you modify .gitignore then git status will

Re: wrong handling of text git attribute leading to files incorrectly reported as modified

2014-04-12 Thread Frank Ammeter
Am 11.04.2014 um 22:38 schrieb Torsten Bögershausen : > On 2014-04-11 22.20, Frank Ammeter wrote: >> I’m not a git expert and this might be the wrong place to ask this question, >> so please send me somewhere else if I’m in the wrong place. >> >> I asked the same question on stack overflow, but

Re: wrong handling of text git attribute leading to files incorrectly reported as modified

2014-04-11 Thread Torsten Bögershausen
On 2014-04-11 22.20, Frank Ammeter wrote: > I’m not a git expert and this might be the wrong place to ask this question, > so please send me somewhere else if I’m in the wrong place. > > I asked the same question on stack overflow, but didn’t get any response: > http://stackoverflow.com/questions/