banga/git-split-diffs

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

mimoo opened this issue · 4 comments

mimoo commented

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?

banga commented

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 commented

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

mimoo commented

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

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