mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 18:36:22 +02:00
Merge branch 'feature/rfc135_git_repository_shenquanma' into feature/rfc135_file_repository_shenquanma
This commit is contained in:
commit
f6dab7e054
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