Skip to content

🐛 [Linux] git add -p not working with side-by-side #274

@msirringhaus

Description

@msirringhaus

System: openSUSE Tumbleweed, self-packaged delta as git-delta (because of naming conflicts).
Happens for delta 0.3 and 0.4

My gitconfig:

[core]
    pager = git-delta

[interactive]
    diffFilter = git-delta --color-only

[delta]
    features = side-by-side line-numbers
    light = true

My diff:

 /* Disable DoH by default */
 pref("network.trr.mode", 5);
-// do not disable system-global or app-global extensions
-pref("extensions.autoDisableScopes", 3);
+// do not disable any scope
+pref("extensions.autoDisableScopes", 0);
 pref("extensions.shownSelectionUI", true);
+pref("extensions.langpacks.signatures.required", false);

Doing git diff works fine, but doing git add -p gives me

fatal: mismatched output from interactive.diffFilter                                                                                                                         
hint: Your filter must maintain a one-to-one correspondence                                                                                                                  
hint: between its input and output lines

If I explicitly set side-by-side = false in .gitconfig -> [delta], it works.

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