mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 09:46:24 +02:00
feat: archive
This commit is contained in:
parent
af716c6c30
commit
913cfaebab
1 changed files with 8 additions and 0 deletions
|
|
@ -142,6 +142,14 @@ class GitRepository:
|
|||
return None
|
||||
return Path(self._repository.working_dir)
|
||||
|
||||
def archive(self, comments="Archive"):
|
||||
"""Archive the current state of the Git repository.
|
||||
|
||||
:param comments: Comments for the archive commit.
|
||||
"""
|
||||
self.add_change(self.changed_files)
|
||||
self.commit(comments)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
path = WORKSPACE_ROOT / "git"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue