Skip to content

🐛 Some output of --show-config is incorrect #2037

@shyun3

Description

@shyun3

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 syntax

Using --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:
Image

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

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions