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

[PATCH v4 0/4] End-of-line normalization, getting close?

From
Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Date
May 13, 2010, 21:44 UTC
Message-ID
<cover.1273786317.git.eyvind.bernhardsen@gmail.com>

Here's the latest series. Linus's suggested attribute names were a lot saner than mine, so I've now split the "crlf" attribute into "crlf" and "eol", and the "crlf" attribute gets renamed to "text" in the final commit. I dropped the patch that renamed autocrlf.

git-cvsserver gets a bit more love in this round (particularly the documentation), so I think it should work as well as it did before. Not too happy with the logic duplication, though.

Patch 1/4 is still "safe autocrlf" from Finn Arne, just for convenience.

All in all, I think this looks pretty good now.
-- 
Eyvind


Eyvind Bernhardsen (3):
  Add tests for per-repository eol normalization
  Add per-repository eol normalization
  Rename the "crlf" attribute "text"

Finn Arne Gangstad (1):
  autocrlf: Make it work also for un-normalized repositories

 Documentation/config.txt        |   20 +++--
 Documentation/git-cvsserver.txt |   13 +--
 Documentation/gitattributes.txt |  164 +++++++++++++++++++++++++++++++--------
 attr.c                          |    2 +-
 cache.h                         |    9 ++-
 config.c                        |    2 +-
 convert.c                       |  155 +++++++++++++++++++++++++++++++------
 environment.c                   |    2 +-
 git-cvsserver.perl              |   13 ++-
 t/t0020-crlf.sh                 |   52 ++++++++++++
 t/t0025-crlf-auto.sh            |  156 +++++++++++++++++++++++++++++++++++++
 11 files changed, 507 insertions(+), 81 deletions(-)
 create mode 100755 t/t0025-crlf-auto.sh
Next: Eyvind Bernhardsen
Message 1 of 5 in “End-of-line normalization, getting close?”
  1. 0/4 End-of-line normalization, getting close?Eyvind Bernhardsen, May 13, 2010
  2. 1/4 autocrlf: Make it work also for un-normalized repositoriesEyvind Bernhardsen, May 13, 2010
  3. 2/4 Add tests for per-repository eol normalizationEyvind Bernhardsen, May 13, 2010
  4. 3/4 Add per-repository eol normalizationEyvind Bernhardsen, May 13, 2010
  5. 4/4 Rename the "crlf" attribute "text"Eyvind Bernhardsen, May 13, 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.