-
Notifications
You must be signed in to change notification settings - Fork 449
Open
Description
I've noticed that --show-config may not display the current hunk-header-style option correctly.
Here is the config file I used:
# test.gitconfig
[delta]
hunk-header-style = file syntaxUsing --show-config outputs the following:
$ delta --config test.gitconfig --show-config
commit-style = raw
file-style = blue
hunk-header-style = syntax
...
Note how hunk-header-style is shown as syntax even though the config uses file syntax.
However, the specified hunk header style is correctly used when calling delta with this config. First, create the following test files:
$ echo hello > test1
$ echo world > test2
Calling delta --config test.gitconfig test1 test2 yields the following on my machine:

To compare, here is the case using an invalid config with delta --config invalid test1 test2:

I'm not sure if any other config option shown may be incorrect.
Using delta 0.18.2 on WSL Ubuntu 24.04.3 LTS.
Metadata
Metadata
Assignees
Labels
No labels