如何明确地告诉SVN对待一个文件作为文本,而不是二进制 [英] How to explicity tell SVN to treat a file as text, not binary

查看:306
本文介绍了如何明确地告诉SVN对待一个文件作为文本,而不是二进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数字,我到SVN检查,而不必设置正确的MIME类型的文件。 SVN最初归他们为二进制。

I have a number of files that I checked into SVN without having set up their Mime types correctly. SVN initially classified them as binary.

我因为设置SVN的MIME类型通过propset命令为text / plain的;字符集= UTF-8和I'vc确保所有文件都UTF-8签名。当我做SVN怪名,SVN说是二进制文件并没有给我明确的怪式输出。

I've since set their Mime type in SVN via propset to "text/plain; charset=UTF-8" and I'vc made sure that all the files are UTF-8 signed. When I do 'svn blame filename', svn says that the file is binary and does not give me explicit blame-type output.

这是怎么说服SVN任何建议,这些都是真正的文本文件?

Any suggestions on how to persuade SVN that these are truly text files?

推荐答案

设置的svn:mime-type属性只是text / plain的帮助:

Setting the svn:mime-type property to just "text/plain" helps:

svn propset svn:mime-type text/plain build.xml
svn commit build.xml

此外,您还可以强制Subversion的指责时,对待文件作为文本:

Also, you can force Subversion to treat a file as text when blaming:

svn blame file/to/blame --force

这篇关于如何明确地告诉SVN对待一个文件作为文本,而不是二进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆