Re: wrong handling of text git attribute leading to files incorrectly reported as modified
- From
Brandon McCaig <bamccaig@gmail.com>
- Date
- Apr 15, 2014, 20:12 UTC
- Message-ID
- <CANUGeEYoS+t57jfpEoZE-2u_cD1uOD5pdp=yF--Rhpb9z91qxQ@mail.gmail.com>
- In-Reply-To
- <D552B854-59FB-406A-8CDE-3A1269CD0F6E@ammeter.ch>
Frank:
On Sat, Apr 12, 2014 at 7:29 AM, Frank Ammeter <git@ammeter.ch> 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 immediately reflect those changes. You don't even have to store either file in the repository (.gitignore or .gitattributes). 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.
Regards,
--
Brandon McCaig <bamccaig@gmail.com> <bamccaig@castopulence.org>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'