Git supports 24-bit colours

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
git
Domain
documentation

Research direction

Locate the project intro text in the repository and verify the relevant Git color syntax in the linked Git documentation. Done means the introduction accurately describes 24-bit color support and clearly explains the project's guidance about precise colors versus terminal theming.

Written by the indexing model from the issue text.

Description

So the intro for this project reads:

According to Git documentation valid colors are limited to white, black, green, magenta, blue, cyan, yellow, red. Due to the limitation on colors availablility, it appears the best option is to theme your terminal, then adjust the .gitconfig file

But this reasoning isn't true: Git supports 24-bit colour definitions in the hex format #RRGGBB, per this part of the config page: https://git-scm.com/docs/git-config#Documentation/git-config.txt-color

So, wouldn't it be better if this project used such precise color definitions, rather than forcing users to theme their terminal? (Even if terminal theming is generally preferable, if there's a way to decouple Git then it may be preferred by some users.)

(For context, I'm not a Dracula user, but I am updating my book on Git which includes a section on setting colours, and I'm wondering about linking to here.)

Dominant language
No language data
Stars
19
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.