Skip to content

🐛 git blame -C loses syntax highlighting #1803

@rmacklin

Description

@rmacklin

The -C flag for git blame is useful for tracking blame beyond code that was moved from one file to another. Unfortunately, it seems to cause delta to lose its syntax highlighting - the blame still has grouped background highlights in different shades of gray, but the code itself isn't highlighted. Here is an asciinema recording demonstrating the issue by running git blame src/handlers/blame.rs and git blame -C src/handlers/blame.rs in a clone of this repository (at commit a01141b):

asciicast

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