git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC v2 0/4] End-of-line normalization, take 2 (now only slightly scary)
@ 2010-05-08 21:46 Eyvind Bernhardsen
  2010-05-08 21:46 ` [PATCH/RFC v2 1/4] Add "core.eolStyle" variable to control end-of-line conversion Eyvind Bernhardsen
                   ` (3 more replies)
  0 siblings, 4 replies; 37+ messages in thread
From: Eyvind Bernhardsen @ 2010-05-08 21:46 UTC (permalink / raw)
  To: git
  Cc: mat, hasen j, Linus Torvalds, Erik Faye-Lund, Junio C Hamano,
	Avery Pennarun, Dmitry Potapov, Robert Buck, Finn Arne Gangstad

Okay, here's a second shot at my end-of-line conversion sanification
series.  The main change is that instead of introducing a new attribute,
I've added a new mode to the "crlf" attribute: "crlf=auto".

The semantics of "crlf" have also been modified slightly in that the
attribute now enables end-of-line normalization whenever it is set,
instead of simply amending what happens when "core.autocrlf" is enabled
as it did before.

I think this version is a step in a direction that everyone can agree
on.  The new config variable seems to be a point of contention, but
while I'm not married to the name "core.eolStyle" by any means, I don't
think "core.crlf" explains what it is, and I don't think "input" and
"true" are good ways of describing what it does.

I agree with Linus that "crlf=input" seems crazy, and I agree with
Dmitry that "crlf" is a bad name for the attribute to begin with.  This
isn't bikeshedding: git has lost a lot of its sharp edges recently, but
this one remains, and is quite an important one for Windows users.

For now, though, I'd like the focus for this patch series to be creating
a mechanism that allows a project to enforce line ending normalization
for all contributors to the repository, while letting the user decide
what line endings he likes to see in his working directory.  If we end
up not shooting anybody in the head, all the better.

Thanks for all your inputs.  I was worried that nobody would even notice
this series :)  I've expanded the Cc list a bit, hope that's okay.

Eyvind Bernhardsen (4):
    Add "core.eolStyle" variable to control end-of-line conversion
    Add tests for per-repository eol normalization
    Pass eol conv mode as an argument instead of using global auto_crlf
    Add per-repository eol normalization

 Documentation/config.txt        |   11 ++-
 Documentation/gitattributes.txt |   71 +++++++++++-----
 Makefile                        |    3 +
 cache.h                         |   19 ++++
 config.c                        |   16 +++-
 convert.c                       |   52 +++++++++---
 environment.c                   |    1 +
 t/t0025-crlf-auto.sh            |  180 +++++++++++++++++++++++++++++++++++++++
 8 files changed, 317 insertions(+), 36 deletions(-)
 create mode 100755 t/t0025-crlf-auto.sh

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2010-05-10 18:33 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-08 21:46 [PATCH/RFC v2 0/4] End-of-line normalization, take 2 (now only slightly scary) Eyvind Bernhardsen
2010-05-08 21:46 ` [PATCH/RFC v2 1/4] Add "core.eolStyle" variable to control end-of-line conversion Eyvind Bernhardsen
2010-05-08 21:57   ` Linus Torvalds
2010-05-08 22:17     ` Eyvind Bernhardsen
2010-05-08 22:53       ` Eyvind Bernhardsen
2010-05-08 23:08         ` Linus Torvalds
2010-05-09  8:13           ` Eyvind Bernhardsen
2010-05-09 18:11             ` Linus Torvalds
2010-05-09 20:11               ` Eyvind Bernhardsen
2010-05-09  7:00         ` Dmitry Potapov
2010-05-09  7:30           ` hasen j
2010-05-10  7:16             ` Dmitry Potapov
2010-05-09  8:34           ` Eyvind Bernhardsen
2010-05-09 10:42           ` Eyvind Bernhardsen
2010-05-09 11:14             ` Robert Buck
2010-05-09 18:59               ` Eyvind Bernhardsen
2010-05-09 20:46                 ` Robert Buck
2010-05-10  4:33                   ` Eyvind Bernhardsen
2010-05-10 11:43                     ` Robert Buck
2010-05-10 13:25                       ` Robert Buck
2010-05-10 14:03                         ` Dmitry Potapov
2010-05-09 17:02             ` Jay Soffian
2010-05-09 17:43               ` Jay Soffian
2010-05-10 18:33               ` Eyvind Bernhardsen
2010-05-09 17:45             ` Junio C Hamano
2010-05-09 18:18               ` Finn Arne Gangstad
2010-05-09 21:57                 ` Junio C Hamano
2010-05-10  5:14                   ` Eyvind Bernhardsen
2010-05-09 20:25               ` Eyvind Bernhardsen
2010-05-09 20:09             ` Finn Arne Gangstad
2010-05-10  8:13               ` Dmitry Potapov
2010-05-10 11:14                 ` Finn Arne Gangstad
2010-05-10 13:46                   ` Dmitry Potapov
2010-05-09  9:21         ` Finn Arne Gangstad
2010-05-08 21:46 ` [PATCH/RFC v2 2/4] Add tests for per-repository eol normalization Eyvind Bernhardsen
2010-05-08 21:46 ` [PATCH/RFC v2 3/4] Pass eol conv mode as an argument instead of using global auto_crlf Eyvind Bernhardsen
2010-05-08 21:46 ` [PATCH/RFC v2 4/4] Add per-repository eol normalization Eyvind Bernhardsen

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).