Skip to content

How can I temporarily disable an option set in gitconfig for the time of running a command? #1209

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

You must be logged in to vote

Hi @nimser, one way is

git -c delta.side-by-side=false <gitsubcommand>

Another way might be to enable it in your gitconfig, not directly using delta.side-by-side, but rather in a feature, and then use DELTA_FEATURES to disable that feature on-demand (let me know if that's not clear). That might not be convenient though if you're using other features.

Do you think there's a role for - to mean subtract a feature? It's not implemented currently but if you think it makes sense do feel free to experiment and open a PR.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nimser
Comment options

@dandavison
Comment options

@nimser
Comment options

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