git-split-diffs icon indicating copy to clipboard operation
git-split-diffs copied to clipboard

Is it possible to use a different differ under the hood?

Open mimoo opened this issue 2 years ago • 3 comments

Hey! I'm using git-split-diffs all the time, but I'd like if it could use this https://github.com/wilfred/difftastic under the hood. Are these tools composable?

mimoo avatar Mar 30 '22 21:03 mimoo

If difftastic can be made to output in the patch format that git uses, then yes it would be pretty easy to hook it up. But I didn't see an option to that from a quick look. It seems like difftastic combines the diffing algo with its own formatting? cc @wilfred if you have any suggestions.

banga avatar Mar 31 '22 06:03 banga

Ah from the readme:

Patching. Difftastic output is intended for human consumption, and it does not generate patches that you can apply later. Use diff if you need a patch.

So probably not

banga avatar Mar 31 '22 06:03 banga

ah dang :( can't have the best of both world, thanks though!

mimoo avatar Mar 31 '22 16:03 mimoo

Is this still not possible, even with the --display inline option from difftastic?

jmmendivil avatar Apr 16 '24 21:04 jmmendivil