3 ms·
I assume you mean github, rather than git? It's not reliant on the colors. The "Code" and "New Pull Request" buttons are green, but they also have text on them.
by nitwit005 3y ago
I assume you mean github, rather than git? It's not reliant on the colors. The "Code" and "New Pull Request" buttons are green, but they also have text on them. Various icons also have assistive text.
There are quite a few variations of color blindness, so ultimately you want color to just be a hint. Handling the most common case is a partial fix.
- wolfgang42 3y agoI think they’re talking about the coloring in `git diff`, `git log --patch`, etc, which defaults to red/green for removed/added lines, respectively. (This can be changed with the `color.diff.*` config options, as seen in git-config(1).) This UI also provides an alternative indication, in the form of -/+ indicators in the left column, but the coloring does help a lot—presuming that you can see it.
- nitwit005 3y agoAhh, I guess I've run without color in the terminal so long that I didn't realize it had color.