Vscode-gitlens: Force to remove colors from output of git command calls

Created on 6 Oct 2017  路  5Comments  路  Source: eamodio/vscode-gitlens

Hi. First, :clap: for your project!

If the ~/.gitconfig file (or a local git config) sets [color] ui=always, then ugly ANSI colors codes are displayed in gitlens output. For instance:
ugly ansi color codes gitlens

I see many different configuration option for gitlens, and the only one where I could modify the git binary or git command line used for each call from gitlens is gitlens.advanced.git.
I wrote a tiny script that just adds -c color.ui=false to git, but specifying this script does not help to remove the bug.

#!/usr/bin/env /bin/sh
git -c color.ui=false "$@"

So my question is: is there any (or could you add) way of adding a command line flag to git commands used by gitlens (in this case, -c color.ui=false would be enough), or to override global git config for gitlens?

bug

All 5 comments

Thanks -- I will look into adding that in an upcoming release

Great, thanks for your fast reply!
Let me know if you need a beta tester :smile:

It seems fixed, I will try to update the VSCode extension (when it is updated) and let you know if the bug is fixed. Thanks :clap:!

Perfect!
fixed ansi color codes gitlens

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mindpivot picture mindpivot  路  4Comments

obrejla picture obrejla  路  3Comments

JP-Ellis picture JP-Ellis  路  3Comments

batjko picture batjko  路  4Comments

derrickstolee picture derrickstolee  路  3Comments