svn diff:标记为二进制类型的文件 [英] svn diff: file marked as binary type

查看:55
本文介绍了svn diff:标记为二进制类型的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对我的一个文件执行 svn diff 并且 svn 将其检测为二进制类型.该文件是可读的纯文本,我希望能够获得该文件的差异.我如何告诉 SVN 这不是一个二进制文件?

无法显示:文件标记为二进制类型.svn:mime-type = 应用程序/八位字节流

解决方案

您可以使用 Subversion 属性 svn:mime-type 在文件上设置显式 mimetype:

<前>svn propset svn:mime-type 'text/plain' path/to/file

或者,您可以使用以下方法删除此属性(因为 Subversion 假定为纯文本,否则):

<前>svn propdel svn:mime-type path/to/file

I'm doing an svn diff on one of my files and svn is detecting it as a binary type. The file is readable plain text and I would like to be able to get a diff of this file. How do I tell SVN that this is not a binary file?

Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

解决方案

You can use the Subversion property svn:mime-type to set an explicit mimetype on the file:

svn propset svn:mime-type 'text/plain' path/to/file

Alternatively, you can delete this property (since Subversion assumes plaintext, otherwise) using:

svn propdel svn:mime-type path/to/file

这篇关于svn diff:标记为二进制类型的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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