Subversion - Add text file - File Status A (bin)

前端 未结 1 1702
既然无缘
既然无缘 2021-02-19 03:12

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

1条回答
  •  粉色の甜心
    2021-02-19 03:35

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

    Subversion treats the following files as text:

    • Files with no svn:mime-type
    • Files with a svn:mime-type starting "text/"
    • Files with a svn:mime-type equal to "image/x-xbitmap"
    • Files with a svn:mime-type equal to "image/x-xpixmap"

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

    • Not attempt to automatically merge received changes with local changes during svn update or svn merge
    • Not show the differences as part of svn diff
    • Not show line-by-line attribution for svn blame

    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.

    0 讨论(0)
提交回复
热议问题