git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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'
Previous: Frank AmmeterNext: Junio C Hamano
Message 4 of 8 in “wrong handling of text git attribute leading to files incorrectly reported as modified”
  1. Frank AmmeterApr 11, 2014
  2. Torsten BögershausenApr 11, 2014
  3. Frank AmmeterApr 12, 2014
  4. Brandon McCaigApr 15, 2014
  5. Junio C HamanoApr 15, 2014
  6. Frank AmmeterApr 16, 2014
  7. Junio C HamanoApr 16, 2014
  8. Holger HellmuthApr 16, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.