[racket-dev] "warning: CRLF will be replaced by LF in {src/worksp/README src/worksp/gracket/gracket.rc src/worksp/racket/racket.rc}" ?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Dec 10 12:45:14 EST 2012

I've probably mangled the line endings of those file as I wrestled with
Windows, git, and MinGW.

I'm not sure what you should do right now, but I'll look into fixing
the files, and hopefully that will just fix things on your machine.

At Mon, 10 Dec 2012 12:35:29 -0500, Greg Hendershott wrote:
> Preface: I'm sorry if this is a really basic question, but I'm new to
> this Git workflow, so I'm cautious because I don't want to cause a
> nuisance with some future pull request.
> 
> I just did a `git fetch` of the upstream PLT master, then a `git
> merge` into my master.
> 
> greg at mbp in ~/src/plt/racket on master
> $ git fetch upstream
> remote: Counting objects: 327, done.
> remote: Compressing objects: 100% (72/72), done.
> remote: Total 216 (delta 174), reused 183 (delta 142)
> Receiving objects: 100% (216/216), 40.89 KiB, done.
> Resolving deltas: 100% (174/174), completed with 102 local objects.
> From github.com:plt/racket
>    0dfcf63..6aa6dc0  master     -> upstream/master
> 
> greg at mbp in ~/src/plt/racket on master
> $ git merge upstream/master
> Merge made by the 'recursive' strategy.
> warning: CRLF will be replaced by LF in src/worksp/README.
> The file will have its original line endings in your working directory.
> warning: CRLF will be replaced by LF in src/worksp/gracket/gracket.rc.
> The file will have its original line endings in your working directory.
> warning: CRLF will be replaced by LF in src/worksp/racket/racket.rc.
> The file will have its original line endings in your working directory.
>  collects/compiler/private/xform.rkt                |   54 +-
>  collects/math/private/bigfloat/gmp.rkt             |    7 +-
>  collects/math/private/bigfloat/mpfr.rkt            |   34 +-
>  ... etc. ...
> 
> 
> At the moment, git tells me I have local uncommitted changes:
> 
> greg at mbp in ~/src/plt/racket on master*
> $ git status
> # On branch master
> # Your branch is ahead of 'origin/master' by 22 commits.
> #
> # Changes not staged for commit:
> #   (use "git add <file>..." to update what will be committed)
> #   (use "git checkout -- <file>..." to discard changes in working directory)
> #
> #	modified:   src/worksp/README
> #	modified:   src/worksp/gracket/gracket.rc
> #	modified:   src/worksp/racket/racket.rc
> #
> no changes added to commit (use "git add" and/or "git commit -a")
> 
> 
> 1. What is the correct thing for me to do?  Add/commit these to my
> local master, or something else?
> 
> 2. I double-checked with `git config -l`, and I do _not_ have
> core.autocrlf enabled. Is that correct or instead should I enable it?
> 
> Thank you.
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev

Posted on the dev mailing list.