login
Header Space

 
 

Re: mingw, windows, crlf/lf, and git

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Ravnborg <sam@...>
Cc: Junio C Hamano <junkio@...>, Johannes Schindelin <Johannes.Schindelin@...>, Alexander Litvinov <litvinov2004@...>, Mark Levedahl <mlevedahl@...>, Git Mailing List <git@...>
Date: Wednesday, February 14, 2007 - 12:28 pm

On Wed, 14 Feb 2007, Sam Ravnborg wrote:

Yes, but I also think that even without .gitattributes, you just want to 
have a default for what "text" actually means, and it's entirely possible 
that the default should be: "check out with just LF, and on check-in turn 
CRLF into LF".

But exactly because _some_ programs might want to always see CRLF on input 
too, it should be overridable. 

Or maybe the default should be "turn into CRLF", and there should just be 
an option to make it check out as LF-only.

Regardless, I think that is independent of ".gitattributes". The 
_attribute_ should be "text", but what it then means in practice is a 
separate flag.

And yes, we *could* have a per-file attribute ("text,crlf-checkout") which 
could be used to say "I want to always check out as crlf regardless of any 
other policy") and the same for lf-only, but I seriously doubt that 
anybody really needs that kind of knob-tweaking. At some point it's just 
fine to say "you're crazy".

			Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mingw, windows, crlf/lf, and git, Mark Levedahl, (Sun Feb 11, 7:13 pm)
Re: mingw, windows, crlf/lf, and git, Alexander Litvinov, (Mon Feb 12, 11:32 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Tue Feb 13, 6:06 am)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Tue Feb 13, 12:52 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Tue Feb 13, 2:04 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Tue Feb 13, 2:39 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Tue Feb 13, 2:42 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Tue Feb 13, 2:11 pm)
Re: mingw, windows, crlf/lf, and git, Nicolas Pitre, (Tue Feb 13, 1:25 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Tue Feb 13, 1:23 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Tue Feb 13, 2:05 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Tue Feb 13, 2:00 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Tue Feb 13, 3:07 pm)
Re: mingw, windows, crlf/lf, and git, Alexander Litvinov, (Wed Feb 14, 7:36 am)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 12:37 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Wed Feb 14, 1:18 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Wed Feb 14, 1:16 am)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 1:36 am)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Wed Feb 14, 7:10 am)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 11:44 am)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Wed Feb 14, 11:53 am)
Re: mingw, windows, crlf/lf, and git, Mark Levedahl, (Wed Feb 14, 10:26 am)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Wed Feb 14, 11:56 am)
Re: mingw, windows, crlf/lf, and git, Mark Levedahl, (Wed Feb 14, 1:28 pm)
Re: mingw, windows, crlf/lf, and git, Robin Rosenberg, (Wed Feb 14, 2:17 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 2:31 pm)
Re: mingw, windows, crlf/lf, and git, Robin Rosenberg, (Wed Feb 14, 4:24 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 12:23 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 11:51 am)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Wed Feb 14, 12:39 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 1:01 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Wed Feb 14, 1:29 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 1:43 pm)
Re: mingw, windows, crlf/lf, and git, Sam Ravnborg, (Tue Feb 13, 4:42 pm)
Re: mingw, windows, crlf/lf, and git, Alexander Litvinov, (Tue Feb 13, 11:47 pm)
Re: mingw, windows, crlf/lf, and git, David Lang, (Tue Feb 13, 7:19 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Tue Feb 13, 7:28 pm)
Re: mingw, windows, crlf/lf, and git, Sam Ravnborg, (Wed Feb 14, 4:41 am)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Wed Feb 14, 12:28 pm)
Re: mingw, windows, crlf/lf, and git, Sam Ravnborg, (Wed Feb 14, 12:47 pm)
Re: mingw, windows, crlf/lf, and git, Nicolas Pitre, (Tue Feb 13, 5:08 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Tue Feb 13, 1:23 pm)
Re: mingw, windows, crlf/lf, and git, Alexander Litvinov, (Tue Feb 13, 8:16 am)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Tue Feb 13, 8:37 am)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Mon Feb 12, 10:02 pm)
Re: mingw, windows, crlf/lf, and git, Mark Levedahl, (Mon Feb 12, 11:21 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Tue Feb 13, 2:05 am)
Re: mingw, windows, crlf/lf, and git, Theodore Tso, (Mon Feb 12, 12:24 am)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Mon Feb 12, 1:20 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Mon Feb 12, 6:54 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Mon Feb 12, 7:24 pm)
Re: mingw, windows, crlf/lf, and git, Mark Levedahl, (Mon Feb 12, 8:32 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Mon Feb 12, 7:42 pm)
Re: mingw, windows, crlf/lf, and git, David Lang, (Mon Feb 12, 7:46 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Mon Feb 12, 7:50 pm)
Re: mingw, windows, crlf/lf, and git, Mark Levedahl, (Mon Feb 12, 8:59 pm)
Re: mingw, windows, crlf/lf, and git, Jeff King, (Tue Feb 13, 1:18 am)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Mon Feb 12, 9:06 pm)
Re: mingw, windows, crlf/lf, and git, Mark Levedahl, (Mon Feb 12, 9:36 pm)
Re: mingw, windows, crlf/lf, and git, Shawn O. Pearce, (Mon Feb 12, 9:13 pm)
Re: mingw, windows, crlf/lf, and git, David Lang, (Mon Feb 12, 9:20 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Mon Feb 12, 7:09 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Mon Feb 12, 7:25 pm)
Re: mingw, windows, crlf/lf, and git, David Lang, (Mon Feb 12, 7:23 pm)
Re: mingw, windows, crlf/lf, and git, Junio C Hamano, (Mon Feb 12, 7:02 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Mon Feb 12, 6:37 pm)
Re: mingw, windows, crlf/lf, and git, Linus Torvalds, (Mon Feb 12, 7:02 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Mon Feb 12, 7:36 am)
Re: mingw, windows, crlf/lf, and git, David Lang, (Mon Feb 12, 3:28 am)
Re: mingw, windows, crlf/lf, and git, Robin Rosenberg, (Sun Feb 11, 8:14 pm)
Re: mingw, windows, crlf/lf, and git, Mark Levedahl, (Sun Feb 11, 10:37 pm)
Re: mingw, windows, crlf/lf, and git, Johannes Schindelin, (Sun Feb 11, 7:34 pm)
speck-geostationary