Skip to content

Why is git blame output not coloured when piped to delta? #1230

Answered by dandavison
tg0h asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tg0h, delta uses the filename to infer the language. (E.g. foo.py => Python, bah.rs => Rust). But the output of git blame does not contain the filename.

However, the situation might not be hopeless. Delta does have code that finds the command that was used when piping to delta. Do you have any interest in writing Rust and would you like to have a go at making it work? I'm going to turn your question into an Issue. Thanks for documenting it so well.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tg0h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants