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

Re: [BUG?] Fresh clone of jquery.git shows modifications?

From
Will Palmer <wmpalmer@gmail.com>
Date
Aug 18, 2010, 16:37 UTC
Message-ID
<1282149456.24584.114.camel@wpalmer.simply-domain>
In-Reply-To
<AANLkTik8RGR4OTeZYsttyBtiywGU7Wtz3gQsTjoqAQPD@mail.gmail.com>
On Wed, 2010-08-18 at 17:50 +0200, Thomas Berg wrote:
Show 13 quoted lines
> Hi,
> [snip]
> > Just to re-state: This is not "my repository". That is, I don't consider
> > it to be. So I would prefer only solutions which involve editing
> > something unversioned, such as .git/config, rather than making random
> > patches which feel very much like work-arounds to a git problem.
> 
> Such a solution exists, you can create a file .git/info/attributes,
> which will override the faulty .gitattributes file in the repository
> [1]. Then you could make git treat all files as binary files, making
> no conversions. Using this unversioned file also enables you to jump
> back in history, rebase etc. without problems.
> 
.git/info/attributes
* -crlf
seems to be what I was looking for! Thank you.

Though I very much think the way git currently acts in this situation is quite inexcusably broken.

> Hope this helps,
> Thomas
> 
> [1] http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
Previous: Thomas BergNext: Eyvind Bernhardsen
Message 5 of 9 in “[BUG?] Fresh clone of jquery.git shows modifications?”
  1. Will PalmerAug 18, 2010
  2. Eyvind BernhardsenAug 18, 2010
  3. Will PalmerAug 18, 2010
  4. Thomas BergAug 18, 2010
  5. Will PalmerAug 18, 2010
  6. Eyvind BernhardsenAug 18, 2010
  7. Eyvind BernhardsenAug 18, 2010
  8. Thomas BergAug 18, 2010
  9. Eyvind BernhardsenAug 18, 2010

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.