Skip to content

🐛 Incorrect output when grepping in a branch with "/" and "-" in the name #1083

@cffswb

Description

@cffswb

Context

OS: Linux
Delta revision: 427c9aa

Description

Tested in delta repository.

Run git grep alone:
$ GIT_CONFIG_GLOBAL=/dev/null git grep theme origin/gh-pages
image

Run git grep + delta:
$ GIT_CONFIG_GLOBAL=/dev/null git -c pager.grep='delta --no-gitconfig' grep theme origin/gh-pages
image
The gh-pageses become gh:pageses, and the themes aren't highlighted.

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