2

I'm using msys-git and notice I often get strange characters in the output after doing a git pull. I presume these are some sort of control characters that some terminals might understand but in a standard windows command prompt they result in this:

 Source/MidiLib/AudioChannelMixer.cpp      ←[m |    6 ←[32m+←[m
 Source/MidiLib/AudioEnvironment.cpp       ←[m |    4 ←[32m+←[m
 Source/MidiLib/EventIDs.h                 ←[m |    1 ←[32m+←[m
 Source/MidiLib/MidiAssignable.cpp         ←[m |  207 ←[32m+++++++++++++++++++++++++←[m←[31m---←[m
 Source/MidiLib/MidiAssignable.h           ←[m |   39 ←[32m+++++←[m←[31m-←[m
 Source/MidiLib/MidiAssignmentsDlg.cpp     ←[m |  101 ←[32m++++++++++++←[m←[31m--←[m

It's not really a problem, but annoying... is there a way to disable these characters and get a clean output?

Brad Robinson
  • 44,114
  • 19
  • 59
  • 88

1 Answers1

10

git config --global color.ui false should do it as those characters are responsible for changing the text color (which is not supported by the Windows console).

Bombe
  • 81,643
  • 20
  • 123
  • 127
  • Yep that certainly helps though strangely I now get colors in the output! The + are in normal color while the - are in red. Fair enough... it just raises the question of what the +/- characters actually mean? – Brad Robinson Jul 06 '09 at 13:46
  • A “+” stands for an inserted line, a “-” stands for a removed line. – Bombe Jul 06 '09 at 15:06