Skip to content

Force to remove colors from output of git command calls #161

@Naereen

Description

@Naereen

Hi. First, 👏 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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions