Re: CRLF problems with Git on Win32

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Linus Torvalds <torvalds@...>, J. Bruce Fields <bfields@...>, Steffen Prohaska <prohaska@...>, Robin Rosenberg <robin.rosenberg.lists@...>, Jeff King <peff@...>, Peter Karlsson <peter@...>, Git Mailing List <git@...>, msysGit <msysgit@...>
Date: Wednesday, January 9, 2008 - 4:25 pm

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:


That sounds like a perfect place for a per-platform tweak like
this than in the code, but I wonder if peoples' scripts have
valid use case of GIT_CONFIG to bypass it (git-svn's use of the
variable to access its private data seems to be Ok).


Won't that behaviour be viewed rather as "insanely" from
majority of Windows users?


I have been hoping a better (simpler to use, and somewhat more
importantly harder to misuse by being not overly flexible) way
than that "clone -c" solution, but that is an implementation
issue (I think the tweak rather belongs to init than clone
anyway, and the point of "-c" is that it is not easy to tweak
the way "init" that is used by "clone" behaves).

Switching core.crlf (or gitattributes to change filter -- in
general, "affecting the way convert_to_working_tree() and
convert_to_git() works") can be done for two opposite reasons.

 (1) repository is correct and checkout is wrong.  This wants
     re-checkout.

 (2) repository records in a wrong convention by mistake and
     needs to be fixed.  Re-checkout is obviously a wrong thing
     to do, and re-checkin (not necessarily commit, but updating
     the index) is necessary.

We need both.
-
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:
Re: CRLF problems with Git on Win32, Junio C Hamano, (Wed Jan 9, 4:25 pm)
Re: CRLF problems with Git on Win32, Johannes Schindelin, (Wed Jan 9, 4:50 pm)
Re: CRLF problems with Git on Win32, Steffen Prohaska, (Wed Jan 9, 5:03 pm)