diff options
author | Dan Davison <dandavison7@gmail.com> | 2022-06-25 11:51:11 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2022-06-25 11:51:11 -0400 |
commit | 88c6a52151e7e1e46386b89f54828b5959741cbc (patch) | |
tree | 376902ec71b83ff7be80a7846998fa915973daaf /manual | |
parent | bd54a51205beb2aa71f8d4efb9b0749f425fb1da (diff) |
Document DELTA_FEATURES in the manual
Diffstat (limited to 'manual')
-rw-r--r-- | manual/src/features-named-groups-of-settings.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manual/src/features-named-groups-of-settings.md b/manual/src/features-named-groups-of-settings.md index 0dde9eb9..6dcc7254 100644 --- a/manual/src/features-named-groups-of-settings.md +++ b/manual/src/features-named-groups-of-settings.md @@ -25,3 +25,17 @@ All delta options can go under the `[delta]` section in your git config file. Ho ``` <table><tr><td><img width=400px src="https://user-images.githubusercontent.com/52205/86275048-a96ee500-bba0-11ea-8a19-584f69758aee.png" alt="image" /></td></tr></table> + +The environment variable `DELTA_FEATURES` can used to enable features from the command line: it should be set to a space-separated string of feature names. +If you precede this with a `+` symbol, then the features are _added_ to those configured elsewhere, instead of replacing them. +This is very useful, for example to temporarily switch delta to side-by-side mode you can do + +``` +export DELTA_FEATURES=+side-by-side +``` + +and to undo that: + +``` +export DELTA_FEATURES=+ +``` |