LoginSignup
2
2

More than 5 years have passed since last update.

Subversionでテキストファイルがバイナリ扱いになった時のコマンド

Posted at

Shift-JISのファイルをUTF-8(BOM)に変換してsvnでコミットした。いざdiffコマンドを打つとバイナリ扱いになっていたため、変換を行った。

環境
* Mac OS X 10.9.1
* Subversion 1.7.14

# ファイルタイプの確認
# unityだったのでここではcsファイルを検索している
$ find . -name "*.cs" -print0 | xargs -0 svn propget svn:mime-type
hoge.cs - application/octet-stream
...

ざっと確認して文字コード指定してみた。

$ find . -name "*.cs" -print0 | xargs -0 svn propset svn:mime-type "text/plain;charset=utf-8"

再度ファイルタイプを確認して、大丈夫ならコミット。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2