I noticed some talk on twitter about the line endings and GIT. And from what I read I am getting the impression you are currently using the most painful/problematic way by setting core.autocrlf to false. Now I am no GIT expert but from what I read at http://help.github.com/dealing-with-lineendings/ and http://git.wiki.kernel.org/index.php/GitSvnComparison “For users on Windows they should set core.autocrlf = true so that text files are automatically checked out with CRLF and checked in as LF.” I understand that the “correct” way would be to set core.autocrlf to true. Am I wrong on this and if so could you explain why?
Regards,
Olle
With autocrlf=false you get exactly what you expect. If the file has
CRLF it is checked in with CRLF if the file has LF it is checked with
LF. There is no magic, no conversion, no confusion. Most editors deal
with CRLF or LF transparently and whether the file is stored with LF
or CRLF in the repo does not pose any tangible problems (unless you
are a purist that feels the repo must NEVER have any CRLFs).
Now, if you were working on a project that is primarily a unix project
(like say the linux kernel) and you are checking it out on a windows
machine, then maybe it would make sense to turn on atuocrlf, Even
then, probably a better solution is to simply set your editor to
always use LF line endings.
In the end we simply turned off autocrlf. Some of our files in our
solution have CRLF endings, some have LF endings. As long as no
individual file spontaneously changes back and forth from CRLF->LF
(which they shouldn't) this has absolutely zero impact on anything
(other than the few extra bytes per file on the repo). To us, this
autocrlf=false has not been painful or problematic in any way. It is
certainly easier than trying to enforce autocrlf policy at the time of
cloning by every contributor and dealing with the odd times where
autocrlf behaves weirdly and tells you your entire file has changed.
> --
> You received this message because you are subscribed to the Google Groups
> "Spark View Engine Dev" group.
> To post to this group, send email to spar...@googlegroups.com.
> To unsubscribe from this group, send email to
> spark-dev+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/spark-dev?hl=en.
>
http://git.wiki.kernel.org/index.php/GitSvnComparison ��For users on Windows they should set core.autocrlf = true so that text files are automatically checked out with CRLF and checked in as LF.� I understand that the �correct� way would be to set core.autocrlf to true. Am I wrong on this and if so could you explain why? Regards, Olle -- You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group. To post to this group, send email to spar...@googlegroups.com. To unsubscribe from this group, send email to
Daniel Tabuenca wrote:
http://git.wiki.kernel.org/index.php/GitSvnComparison “For users on Windows they should set core.autocrlf = true so that text files are automatically checked out with CRLF and checked in as LF.” I understand that the “correct” way would be to set core.autocrlf to true. Am I wrong on this and if so could you explain why? Regards, Olle -- You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group. To post to this group, send email to spar...@googlegroups.com. To unsubscribe from this group, send email to
spark-dev+...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/spark-dev?hl=en.
On Mar 13, 5:43 pm, Christopher <christop...@bluefenix.net> wrote:
> Apparently it's comparable, only branches are harder to delete. Tekpub
> has an intro to hg on codeplex video I believe.
>
> --
> -Christopher Pelatari |http://bluefenix.net
>
> On Mar 13, 2010, at 3:48 AM, Louis DeJardin <louis.dejar...@gmail.com>
> wrote:
>
>
>
> > Yeah, Daniel's remarks are exactly in line with what I experienced
> > when I migrated.
>
> > autocrlf is what you would use for a mixed development environment,
> > where Windows clients would want to shift to CRLF in working copy
> > and back to LF on commit.
>
> > Because Spark code is natively CRLF I turned off the setting to have
> > the true file format in source control and avoid the whole round-
> > tripping mess.
> >> On Thu, Mar 11, 2010 at 17:27, Olle de Zwart <o...@endforward.nl>
On Tue, Mar 16, 2010 at 2:25 PM, Bret Ferrier (runxc1) <run...@gmail.com> wrote:
> I have been using TortoiseGit with mixed success.
>
Mostly just for the ability to bind a hot key to view a complete
history of the current file or undo any changes since the last commit.
It also has most features that git gui/gitk do but I feel the former
tools do a better job.
Windows tools for both git and mercurial leave something to be
desired. Both have a "tortoise-" variant, and neither is nearly as
good as subversion's, both have visual studio integration (git's goes
up to vs2010), but again, nothing worth breaking down the door for.
As for where to put things; why is the issue tracker on codeproject,
the forum on google, and the code on github? I think this is the
biggest barrier to contribution for this project: newcomers can't tell
where to go to contribute, and just end up leaving. Github has its own
bug tracker, codeplex has it's own forum. You can already consolidate
and get rid of at least 1 of the 3 services without changing the
workflow.
On Mar 16, 2:54 pm, Daniel Tabuenca <dtabu...@gmail.com> wrote:
> I find keeping git gui open all the time encourages frequent and more
> focused commits. I also like using git extensions for visual studio:
>
> http://github.com/spdr870/
>
> Mostly just for the ability to bind a hot key to view a complete
> history of the current file or undo any changes since the last commit.
> It also has most features that git gui/gitk do but I feel the former
> tools do a better job.
>
> On Tue, Mar 16, 2010 at 12:51, Christopher Pelatari
>
> <christop...@bluefenix.net> wrote:
> > I prefer the command line when using git. gitk for history viewing.
> > --
> > -Christopher Pelatari |http://bluefenix.net
>
> > On Tue, Mar 16, 2010 at 2:25 PM, Bret Ferrier (runxc1) <run...@gmail.com> wrote:
> >> I have been using TortoiseGit with mixed success.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
> >> To post to this group, send email to spar...@googlegroups.com.
> >> To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
> >> For more options, visit this group athttp://groups.google.com/group/spark-dev?hl=en.