ewanmellor / git-diff-image

An extension to 'git diff' that provides support for diffing images.
254 stars 30 forks source link

Grab diff file #25

Closed hannesa2 closed 1 year ago

hannesa2 commented 1 year ago

I want to automate this image compare on github actions, so I want to only generate diff files, store it and don't view it.

I figured out here is the file, exec open "$destfile" but I want to prevent to change this file diff-image and probably there is already a command line to do this save of diff file, is there one ?

ewanmellor commented 1 year ago

Yes, $destfile is the one that you want.

No, that option does not exist in the script. It sounds like a good idea though, so if you added it I would happily accept that pull request.

You could add a -o option to specify the output path, and then if that is set you would just move $destfile there instead of calling exec open or xdg-open.