Skip to content

Is there a way to disable width=variable only for git blame ? #1094

Answered by Kr1ss-XD
bew asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bew,

you could make use of the pager.blame option in the gitconfig, and set that so that delta would be called with --width=0 when running git blame, and have a default of --width=variable for any other git subcommand :

[pager]
	blame	=	delta --width=0
	diff	= 	delta
	log		=	delta
	; ...
[delta]
	width	=	variable
	; ...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bew
Comment options

Answer selected by bew
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