chiark / gitweb /
Refactor stgit.commands.edit
authorKarl Hasselström <kha@treskal.com>
Sun, 21 Sep 2008 12:17:43 +0000 (14:17 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 21 Sep 2008 12:19:07 +0000 (14:19 +0200)
commitef954fe616e3a8012d247292dc8a82a4e3d8d333
treebdc8a20bb5beba44effc97e242ae542079021ade
parent625e8de7db58c85f137e78aaef258afcb1a3151c
Refactor stgit.commands.edit

Reorganize a few existing functions, and break out stuff from the main
function into subroutines.

While we're at it, move one of the old and all of the new functions to
stgit.lib.edit, so that we can use them in a later patch to implement
"stg refresh --edit".

This fixes one of the known failures in t3300-edit.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/common.py
stgit/commands/diff.py
stgit/commands/edit.py
stgit/commands/export.py
stgit/commands/files.py
stgit/commands/imprt.py
stgit/commands/mail.py
stgit/git.py
stgit/lib/edit.py [new file with mode: 0644]
stgit/lib/git.py
t/t3300-edit.sh