Refactor --diff-opts handling
authorKarl Hasselström <kha@treskal.com>
Thu, 24 Jan 2008 06:07:08 +0000 (07:07 +0100)
committerKarl Hasselström <kha@treskal.com>
Thu, 24 Jan 2008 07:22:40 +0000 (08:22 +0100)
commit0b635fe6d38b6ca33a51056d00dd8431a3e2a116
tree2d3a7c2ff7c83968380f4962440dc2e731b28e3e
parentea27ef9d69d777bc6722b5d99b033122b338ebbf
Refactor --diff-opts handling

Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/diff.py
stgit/commands/edit.py
stgit/commands/export.py
stgit/commands/files.py
stgit/commands/mail.py
stgit/commands/status.py
stgit/utils.py