Skip to content

Instantly share code, notes, and snippets.

@gduverger
Created December 19, 2018 13:00
Show Gist options
  • Save gduverger/bb03bf926b78637a3bbf532de8057736 to your computer and use it in GitHub Desktop.
Save gduverger/bb03bf926b78637a3bbf532de8057736 to your computer and use it in GitHub Desktop.
# http://amoffat.github.io/sh/
import sh
sh.diff('file-1.txt', 'file-2.txt', unified=3, _out='diff.patch', _ok_code=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment