All of lore.kernel.org
 help / color / mirror / Atom feed
* Per file configurable eol-style transformations with Git?
@ 2009-11-21 20:21 Alexander Veit
  2009-11-21 21:18 ` Jakub Narebski
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Veit @ 2009-11-21 20:21 UTC (permalink / raw)
  To: git

Hi,

we have projects that contain text files that need to
have different end-of-line sequences, depending on the
type of file, and depending on the operating system where
they are checked out.

There are files that have

 - LF line breaks on each platform,
 - CR LF line breaks on each platform, or
 - either LF or CR LF line breaks, depending on the
   platform's native end-of-line style.

With Subversion, the correct behaviour in checkouts, commits,
diffs, or merges can easily be achieved by setting the appropriate
svn:eol-style [*].

As I understand the Git documentation there's no such concept as a
repository end-of-line style, or as an end-of-line transformation
between repository and working copy.

So I wonder if it is possible to mimic Subversion's end-of-line handling
with Git, especially for the svn:eol-style=native.

-- 
Regards,
Alex


[*]
http://svnbook.red-bean.com/nightly/de/svn-book.html#svn.advanced.props.special.eol-style

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

end of thread, other threads:[~2009-11-22  1:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-21 20:21 Per file configurable eol-style transformations with Git? Alexander Veit
2009-11-21 21:18 ` Jakub Narebski
2009-11-21 23:49   ` Alexander Veit
2009-11-22  1:24     ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.