* .gitattributes not forcing EOLs correctly for a CRLF-ending file on *NIX
@ 2011-07-22 13:34 Adam Monsen
2011-07-22 13:56 ` Adam Monsen
0 siblings, 1 reply; 2+ messages in thread
From: Adam Monsen @ 2011-07-22 13:34 UTC (permalink / raw)
To: git
Anyone have ideas why my .gitattributes file isn't working?
Repo: git://chordii.git.sourceforge.net/gitroot/chordii/chordii
File "INSTALL.WINDOWS" (in the top-level directory of the repo) should
always have crlf line endings, but my git 1.7.4.1 client says the file
is modified after a fresh clone. I'm on Ubuntu GNU/Linux, I have
core.autocrlf set to "input". The top-level .gitattributes file contains
one line: "INSTALL.WINDOWS eol=crlf".
More likely I'm misusing .gitattributes or the core.autocrlf setting.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: .gitattributes not forcing EOLs correctly for a CRLF-ending file on *NIX
2011-07-22 13:34 .gitattributes not forcing EOLs correctly for a CRLF-ending file on *NIX Adam Monsen
@ 2011-07-22 13:56 ` Adam Monsen
0 siblings, 0 replies; 2+ messages in thread
From: Adam Monsen @ 2011-07-22 13:56 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
I wrote:
> Anyone have ideas why my .gitattributes file isn't working?
drizzd on #git helped me out!
I went ahead and committed the file, and git replaced the line endings.
drizzd said the repository (the file object, I guess?) contained a file
with CRLF line endings, instead of LF line endings. But in my
checked-out version, I correctly see a file with CRLF line endings. Yay!
I generally follow the advice at http://help.github.com/line-endings/ in
terms of the core.autocrlf setting.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 554 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-22 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22 13:34 .gitattributes not forcing EOLs correctly for a CRLF-ending file on *NIX Adam Monsen
2011-07-22 13:56 ` Adam Monsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).