core.autocrlf

`git` shows changed files after cloning, without any other actions

对着背影说爱祢 提交于 2019-12-06 04:19:16
git clone git@github.com:erocarrera/pydot ( 35a8d858b ) in a Debian with git config core.autocrlf input shows: modified: test/graphs/b545.dot modified: test/graphs/b993.dot modified: test/graphs/cairo.dot These files have CRLF line endings, for example: $ file test/graphs/cairo.dot test/graphs/cairo.dot: UTF-8 Unicode text, with CRLF line terminators The .gitattributes file contains : *.py eol=lf *.dot eol=lf *.txt eol=lf *.md eol=lf *.yml eol=lf *.png binary *.ps binary Changing core.autocrlf has no effect on the status of these files. Deleting the .gitattributes has no effect either.

Override .gitattributes text=auto in Windows

試著忘記壹切 提交于 2019-12-05 16:28:04
This is pretty unintuitive: C:\python-tdl\examples\termbox>git config core.autocrlf false C:\python-tdl\examples\termbox>git commit termbox.py warning: LF will be replaced by CRLF in examples/termbox/termbox.py. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in examples/termbox/termbox.py. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in examples/termbox/termbox.py. The file will have its original line endings in your working directory. Aborting commit due to empty

GIT: How to get rid of the annoying CRLF message on msysgit (windows)?

旧时模样 提交于 2019-12-05 07:13:43
Practically everytime I stage a textfile (that's most of em), I get the message from git gui (I use msysgit) that It replaced (or is about to) line endings with CRLF's. Obviously I want that (and there's a setting for it huraah), but I don't want the annoying message popped up all the time! Any way to keep the setting, but turn off/disable the popup message? I have no idea how this works with GIT on the commandline, but I like msysgit's staging process :) so I'd rather not change to bash. The command line just prints a message, and that's it. I don't think that the message box can be disabled,

make sure files are converted CRLF into LF in an update hook- is there a performance hit?

 ̄綄美尐妖づ 提交于 2019-12-04 14:14:01
问题 There had been a lot of discussions about the core.autocrlf and core.safecrlf features in the current release and the next release. The question i have here relates to an environment where developers clone from a bare repository. During the clone the autocrlf settings are enabled. But since the developers has full control on their clone, they can remove this autocrlf setting and proceed. We can specify files other than binary in the .gitattributes file but is there any other way GIT

.gitattributes with core.autocrlf unset

北战南征 提交于 2019-12-04 13:06:49
问题 I have a .gitattributes file in my repository that looks like this * text=auto *.txt text I have unset core.autocrlf in the repository, global, and system settings. My understanding, based on the documentation for gitattributes, is that all files in the repository whose names end with .txt should be checked out with the native line endings. What I'm seeing, though, is that the .txt files always have LF for line endings, even on Windows. Given this configuration, why aren't the line endings

How do I force git to checkout the master branch and remove carriage returns after I've normalized files using the “text” attribute?

只愿长相守 提交于 2019-12-04 07:29:37
问题 Okay, so I added the file .gitattributes with lines like this *.css text *.js text etc... I then followed the instructions at http://git-scm.com/docs/gitattributes#_checking-out_and_checking-in $ rm .git/index # Remove the index to force Git to $ git reset # re-scan the working directory $ git status # Show files that will be normalized $ git add -u $ git add .gitattributes $ git commit -m "Introduce end-of-line normalization" But now my working copy still has the carriage returns! I have

Dealing with EOL characters in Cygwin Git and Git for Windows accessing the same repository

好久不见. 提交于 2019-12-04 05:56:06
My autocrlf is equal to true. In my cygwin-shell git status gives me a correct list of all my changes. In Git Bash git status says I modified all files in the project. I also see this in Git GUI and the Changes-tab in IntelliJ. How is this possible, and more importantly, how can I fix it? kostix Cygwin Git "sees the world" as if it runs on a POSIX platform—thanks to the emulation provided by Cygwin. Contrary to this, Git for Windows is a native Windows program which does not use any emulation and tries to be as close to Windows standards (however idiotic) as possible. What this leads to is

Not doing git CRLF conversion for .m matlab files?

∥☆過路亽.° 提交于 2019-12-04 03:26:59
问题 Matlab .m files use the Unix LF line endings even on Windows. I'm look to set up the git config file so that the .m files are not converted back to CRLF as other regular text files would be (i.e. I am using LF as the default style within the repo, even though its Windows). Can this be done? EDIT: from Matlab 2008b manual. (under Editing and Debugging M-Files) Line Endings Removed in Files Provided with MATLAB Software for Windows Platforms; Impacts Viewing in Notepad Application In previous

Enforce core.autocrlf=input through .gitattributes

一个人想着一个人 提交于 2019-12-03 14:30:41
Is there a way to enforce core.autocrlf=input from within the .gitattributes in order to propagate the policy throughout my colleagues? In detail what I want is to convert to lf on add and leave as is on checkout . The problem is that neither text nor eol do what I want in .gitattributes since eol has 3 acceptable values: lf crlf native Ideally I would like my .gitattributes file to look like this: * text eol=asis In detail what I want is to convert to lf on commit and leave as is on checkout. Git doesn't convert on commit, but rather on git add . (More precisely, it does conversions on

make sure files are converted CRLF into LF in an update hook- is there a performance hit?

一世执手 提交于 2019-12-03 08:17:32
There had been a lot of discussions about the core.autocrlf and core.safecrlf features in the current release and the next release. The question i have here relates to an environment where developers clone from a bare repository. During the clone the autocrlf settings are enabled. But since the developers has full control on their clone, they can remove this autocrlf setting and proceed. We can specify files other than binary in the .gitattributes file but is there any other way GIT automatically determine if a file is a text file or binary file? Is there a way like an update hook (commit hook