Make all StackTransaction arguments required
commit3ee9d485ea4eef86710c214d901eb9fa99dfc431
authorPeter Grayson <pete@jpgrayson.net>
Tue, 2 Nov 2021 02:54:16 +0000 (1 22:54 -0400)
committerPeter Grayson <pete@jpgrayson.net>
Wed, 3 Nov 2021 13:38:59 +0000 (3 09:38 -0400)
tree12f61b8c64ac5181e6a03c8325176d6b083e8644
parent85a94ea298b653efddd2b25289303f0f05ed56ba
Make all StackTransaction arguments required

This is a transition move toward the goal of moving bad head and clean
iw checks out of StackTransaction.__init__(). Making all of arugments
required lets us explicitly spell-out how each command uses
allow_bad_head and check_clean_iw. The next step is to perform those
checks, when required, prior to initializing the StackTransaction.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
24 files changed:
stgit/commands/branch.py
stgit/commands/clean.py
stgit/commands/commit.py
stgit/commands/common.py
stgit/commands/float.py
stgit/commands/goto.py
stgit/commands/hide.py
stgit/commands/imprt.py
stgit/commands/new.py
stgit/commands/pick.py
stgit/commands/pop.py
stgit/commands/push.py
stgit/commands/redo.py
stgit/commands/refresh.py
stgit/commands/repair.py
stgit/commands/reset.py
stgit/commands/sink.py
stgit/commands/squash.py
stgit/commands/sync.py
stgit/commands/uncommit.py
stgit/commands/undo.py
stgit/commands/unhide.py
stgit/lib/edit.py
stgit/lib/transaction.py