diff options
author | bright <mmh1989@foxmail.com> | 2024-05-18 07:38:46 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-09-12 16:15:06 +0000 |
commit | d8b4101eae8d7b650c9fd27d4f6495a032187279 (patch) | |
tree | b484eb66fa2800b0cdbca16c4e7c3b1314725bb9 /color.py | |
parent | 1c53b0fa444d66076a0c364a41864474b9b0d6c5 (diff) | |
download | git-repo-d8b4101eae8d7b650c9fd27d4f6495a032187279.tar.gz |
color: fix have_fg not re assign to true
In method _parse the value of this variable 'have_fg ' is always
False, Maybe reassign it to True is lost.
I guess the author’s original intention was:
if set some value in gitconfig file(for ex: text = black red ul),
the first is bg color, the second is fg color, and the last one is attr.
Change-Id: I372698fe625db4c1fdaa94ea7f193a80a850ecb9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/425997
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Bright Ma <mmh1989@foxmail.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Diffstat (limited to 'color.py')
-rw-r--r-- | color.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -210,6 +210,7 @@ class Coloring: | |||
210 | if have_fg: | 210 | if have_fg: |
211 | bg = a | 211 | bg = a |
212 | else: | 212 | else: |
213 | have_fg = True | ||
213 | fg = a | 214 | fg = a |
214 | elif is_attr(a): | 215 | elif is_attr(a): |
215 | attr = a | 216 | attr = a |