This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: git on cygwin howto?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Peter Klavins on 9/24/2007 8:54 AM:
>>> That is the functionality that I need.
>> Why?  If you are trying to emulate Linux, by using binary mounts, you
>> should not want \r in your files.  And if you really insist on using
>> text
>> mounts with git, you are probably better off trying the mingw build of
>> git.
>>
> 
> I am not trying to emulate Linux, but rather get a replacement version
> control system for CVS, whose cygwin port works fine as I need, i.e.,
> crlf automatically replacing lf in text files, even if the remote
> repository is Linux-based and only has lf in text files.

I think that a cygwin binary mount, coupled with git's core.autocrlf
feature, will do this for you; I only warn you that cygwin tools will
probably not be able to do much with the resulting git checkout, but that
your third party tools would then see their desired crlf.

>  My work has
> for years been in an environment where text files must be in their
> native format regardless of choice of repository and regardless of the
> software engineer's choice of desktop.

Cygwin's preferred native file format is plain lf, not crlf (ie. the same
as in Linux), if you use cygwin binary mounts.  I can't speak for mingw
(and even if I could, this isn't the list for it).

> Given that the cygwin CVS works fine, I wasn't looking for and wasn't
> aware that there was a Mingw port of git, I was assuming that the
> cygwin git should fit the bill.  Thanks for the hint, sorry to have
> bothered you.

Don't apologize for asking - this list is for discussing cygwin issues,
and I'm glad to chime in where I can.  Hopefully this thread has proved
helpful for you.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+H7A84KuGfSFAYARAjojAJ4hzYek7UNcUtRL0NjGs15hEemTTgCfctPF
61hMtgXswSUoxMVAPzeMK/o=
=mhkf
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]