Skip to content

Instantly share code, notes, and snippets.

@Tubbles
Tubbles / git-blame-colored.py
Last active October 26, 2018 06:12 — forked from mplewis/LICENSE.md
git blame with colored authors and pygments syntax highlighting. Dependencies: `pip install pygments tabulate colored`
#!/usr/bin/env python3
color_groups = [
[('red', None), ('green', None), ('yellow', None), ('magenta', None),
('cyan', None)],
[('black', 'light_red'), ('black', 'light_green'),
('black', 'light_yellow'), ('black', 'light_magenta'),
('black', 'light_cyan')]
]
cmd = ['git', 'blame', '--line-porcelain']