Various StackState improvements
commit8aa2ba32ccdca445e9fe201ce4237bf3c801bd2e
authorPeter Grayson <pete@jpgrayson.net>
Sat, 17 Apr 2021 14:48:15 +0000 (17 10:48 -0400)
committerPeter Grayson <pete@jpgrayson.net>
Tue, 20 Apr 2021 04:52:56 +0000 (20 00:52 -0400)
tree59b8122c46faaae0145ac4e0a09e8233f29c881c
parent6af99af232c90d1629ac71be500eef2241245c81
Various StackState improvements

- Remove _repo attribute. Repo is now passed-in when committing stack
  state.
- The prev attribute is now either a Commit instance or None. To get the
  previous stack state referred to by prev, get_prev_state() is now called.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/commands/log.py
stgit/lib/log.py
stgit/lib/stack.py