Currently fails due to an overflow copying a C constant to a Go one: BUILDSTDERR: ./diff.go:441:2: constant 2147483648 overflows DiffOptionsFlag
Fixed on Rawhide with the switch to the 0.28 branch of libgit2.