Subversion - 添加文本文件 - 文件状态 A (bin) [英] Subversion - Add text file - File Status A (bin)

查看:29
本文介绍了Subversion - 添加文本文件 - 文件状态 A (bin)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道为什么我在文件状态中得到 (bin) - 我检查了文件并且没有特殊字符.添加和提交有效,文件可能没问题,但我只是觉得这很奇怪.

I don't know why I'm getting (bin) in the file status - I checked the file and there are no special characters. The add and commit worked and the file is probably fine, but I just thought it was odd.

推荐答案

来自 http://subversion.apache.org/faq.html#binary-files

Subversion 将以下文件视为文本:

Subversion treats the following files as text:

  • 没有 svn:mime-type 的文件
  • svn:mime 类型以text/"开头的文件
  • svn:mime-type 等于image/x-xbitmap"的文件
  • svn:mime-type 等于image/x-xpixmap"的文件

所有其他文件都被视为二进制文件,这意味着 Subversion 将:

All other files are treated as binary, meaning that Subversion will:

  • 在 svn update 或 svn merge 期间不尝试自动将收到的更改与本地更改合并
  • 不显示差异作为 svn diff 的一部分
  • 不显示 svn blame 的逐行属性

检查您的文件扩展名/关联的 MIME 类型.你可以通过在 svn:mime-type 上做一个属性集来强制它变成文本,与系统相关的 mime 类型不同.

Check your file extension / associated mime type. You can force it to text by doing a propset on the the svn:mime-type to be different than the system's associated mime type.

这篇关于Subversion - 添加文本文件 - 文件状态 A (bin)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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