diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-04-30 22:20:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 22:20:16 +0200 |
commit | 861283ebd365d078288504669045505313345055 (patch) | |
tree | 9012ec70ee047515d83b9e70ef26108606ead102 /internal | |
parent | a0224d9db3167102ddd3d0024a43636251dacca6 (diff) | |
parent | aab967d28e8ece09c1d94241cb8da25be1e6b6cf (diff) | |
download | go-git-861283ebd365d078288504669045505313345055.tar.gz |
Merge pull request #46 from twpayne/fix-diff-color
Fix issues in colored diffs
Diffstat (limited to 'internal')
-rw-r--r-- | internal/color/color.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/internal/color/color.go b/internal/color/color.go deleted file mode 100644 index 2cd74bd..0000000 --- a/internal/color/color.go +++ /dev/null @@ -1,38 +0,0 @@ -package color - -// TODO read colors from a github.com/go-git/go-git/plumbing/format/config.Config struct -// TODO implement color parsing, see https://github.com/git/git/blob/v2.26.2/color.c - -// Colors. See https://github.com/git/git/blob/v2.26.2/color.h#L24-L53. -const ( - Normal = "" - Reset = "\033[m" - Bold = "\033[1m" - Red = "\033[31m" - Green = "\033[32m" - Yellow = "\033[33m" - Blue = "\033[34m" - Magenta = "\033[35m" - Cyan = "\033[36m" - BoldRed = "\033[1;31m" - BoldGreen = "\033[1;32m" - BoldYellow = "\033[1;33m" - BoldBlue = "\033[1;34m" - BoldMagenta = "\033[1;35m" - BoldCyan = "\033[1;36m" - FaintRed = "\033[2;31m" - FaintGreen = "\033[2;32m" - FaintYellow = "\033[2;33m" - FaintBlue = "\033[2;34m" - FaintMagenta = "\033[2;35m" - FaintCyan = "\033[2;36m" - BgRed = "\033[41m" - BgGreen = "\033[42m" - BgYellow = "\033[43m" - BgBlue = "\033[44m" - BgMagenta = "\033[45m" - BgCyan = "\033[46m" - Faint = "\033[2m" - FaintItalic = "\033[2;3m" - Reverse = "\033[7m" -) |