svn diff: file marked as binary type

前端 未结 2 2006
心在旅途
心在旅途 2021-01-30 06:11

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 thi

相关标签:
2条回答
  • 2021-01-30 06:44

    You can get diff even for a file marked as binary by using --force.

    svn diff --force path/to/file

    0 讨论(0)
  • 2021-01-30 06:49

    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
    
    0 讨论(0)
提交回复
热议问题