Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-1474

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Git
    • None
    • Windows 7
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

              sstreeting Steve Streeting (Inactive)
              675e620cc034 DJm00n
              Votes:
              43 Vote for this issue
              Watchers:
              24 Start watching this issue

                Created:
                Updated: