Skip to content

How --default-language option works? #858

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

You must be logged in to vote

Hi @alefbragin, I'm sorry, you hit upon an option which I had introduced for one purpose, but not announced, and was not doing what one would expect. I've fixed that now in #859 (so if you can compile Rust and would like to test that branch then great!). Here's what I wrote there:

The default-language option had been introduced initially in order to determine language for git blame (where there are no file names). However, subsequently git blame came to determine the language by inspecting the command line of the calling process (e.g. if delta sees the calling process is git blame src/file.ts then the language is typescript). Meanwhile default-language never actually acquired its obvious …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@alefbragin
Comment options

@eitau
Comment options

Answer selected by alefbragin
Comment options

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