gsb backup -c will combine any new changes with the previous backup
and prompt for confirmation if that backup is tagged
gsb backup -cc will combine any new changes with all untagged backups since the last tagged backup (and will behave trivially if there are no new tagged backups)
Addressing some of the tech debt from #33, history.get_history has been refactored to separate the fetching from the logging
Fixed a bug where "rebased" commits weren't removing the trailing newline from the messages of the original commits
Adds usage docs for -c, -cc and also gsb delete
Switches the scope of the _repo_with_history fixture from module-level to session-level, which should be perfectly safe
Tech Debt and Other Concerns
Validation Performed
I've tested out the prompts and logging messages I get when using the -c and -cc flags, and they look good to me.
After this PR is merged I'll be cutting a beta release to allow me to dogfood this new functionality (I see gsb -cc --tag "message" becoming my standard operating procedure).
[x] I have run mkdocs serve locally and ensured that all API docs and
changes I have made to the static pages are rendering correctly, with all links
working
[x] All tech debt concerns have been resolved, documented as issues, or otherwise
accepted
Summary
Implements #34
List of Changes
gsb backup -c
will combine any new changes with the previous backupgsb backup -cc
will combine any new changes with all untagged backups since the last tagged backup (and will behave trivially if there are no new tagged backups)history.get_history
has been refactored to separate the fetching from the logging-c
,-cc
and alsogsb delete
_repo_with_history
fixture from module-level to session-level, which should be perfectly safeTech Debt and Other Concerns
Validation Performed
-c
and-cc
flags, and they look good to me.gsb -cc --tag "message"
becoming my standard operating procedure).PR Type
release
)Checklist:
mkdocs serve
locally and ensured that all API docs and changes I have made to the static pages are rendering correctly, with all links working