delta icon indicating copy to clipboard operation
delta copied to clipboard

Doesn't work with git version `2.37.0`

Open boris-petrov opened this issue 3 years ago • 3 comments

Using delta 0.13.0. I have this in my .gitconfig file:

[interactive]
	diffFilter = delta --color-only

Which worked great when using git add -p. Since version 2.37.0 of git, it blows up:

error: could not parse colored hunk header

And then some random stuff.

boris-petrov avatar Jun 28 '22 12:06 boris-petrov

Workaround:

[add.interactive]
    useBuiltin = false

(Credit to @malsyned in issue linked above)

OJFord avatar Jun 28 '22 20:06 OJFord

I would say it is a Git regression, and should be reported to the Git mailing list: http://git-scm.com/community.

phil-blain avatar Jul 06 '22 12:07 phil-blain

I would say it is a Git regression, and should be reported to the Git mailing list: http://git-scm.com/community.

Reported here: https://lore.kernel.org/git/[email protected]/T/#u

phil-blain avatar Aug 23 '22 12:08 phil-blain

Fixed in Git 2.38, out today: https://github.com/git/git/blob/3dcec76d9df911ed8321007b1d197c1a206dc164/Documentation/RelNotes/2.38.0.txt#L353-L356

phil-blain avatar Oct 03 '22 19:10 phil-blain

Indeed it is! Thanks!

boris-petrov avatar Oct 05 '22 05:10 boris-petrov

Fixed for me too. Thanks for following up!

WhyNotHugo avatar Oct 05 '22 06:10 WhyNotHugo