Make SourceTree use .gitattributes "encoding" option for diff view

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Git
    • None
    • Environment:
      Windows 7

      In my company *.cpp and *.h files are in CP1251 encoding but all other files in UTF8. If I change default encoding in SourceTree options then all non-ASCII commit messages are broken.
      I think this issue can be resolved via .gitattributes encoding option per project like this:

      .gitattributes
      *.cpp  encoding=cp1251
      *.h  encoding=cp1251
      

      I wish SourceTree has support for this option.

            Assignee:
            Steve Streeting (Inactive)
            Reporter:
            DJm00n
            Votes:
            44 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated: