You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

173
173
174
+
## Custom Themes
175
+
176
+
Default themes are loaded from the `git-split-diffs` bundle. To load a custom theme, set `theme-directory` in git config and create a `{theme-name}.json` file in that directory with the theme's definition. You can use one of the existing themes in [themes/](https://github.com/banga/git-split-diffs/tree/main/themes) as a starting point.
This will use `/path/to/theme/name.json` as the theme.
184
+
174
185
## Performance
175
186
176
187
Tested by measuring the time it took to pipe the output `git log -p` to `/dev/null` via `git-split-diffs` with the default theme:
@@ -191,6 +202,10 @@ See [#narrow-terminals](#narrow-terminals)
191
202
192
203
Text coloring is implemented using Chalk which supports [various levels of color](https://github.com/chalk/chalk#supportscolor). If Chalk is producing fewer colors than your terminal supports, try overriding Chalk's detection using a variation of the `--color` flag, e.g. `--color=16m` for true color. See Chalk's documentation or [this useful gist on terminal support](https://gist.github.com/XVilka/8346728) if issues persist.
193
204
205
+
### Want to remove background colors from a theme?
206
+
207
+
See [#custom-themes](#custom-themes) for instructions on customizing themes. Removing `backgroundColor` should usually work.
208
+
194
209
## Acknowledgements
195
210
196
211
-[diff-so-fancy](https://github.com/so-fancy/diff-so-fancy) for showing what's possible
0 commit comments