2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-27 18:41:48 +00:00

Comments adjusted

This commit is contained in:
2024-12-28 17:04:36 +00:00
parent 8dbad16ece
commit 4652d83b49
3 changed files with 8 additions and 4 deletions

View File

@@ -263,7 +263,7 @@ def git_string(author_string):
def write_and_commit(files, message, editor=None):
"""Writes the content to the filepath and adds and commits the file to git. If this fails, a WriteAndCommitError is raised.
These need refactoring
This needs refactoring to just write and then call only_commit()
"""
git = settings.GIT
commands = []
@@ -380,7 +380,7 @@ class WriteAndCommitError(Exception):
return f"WriteAndCommitError: {self.message}"
def writetrogglefile(filepath, filecontent, commit_msg=None):
def writetrogglefile(filepath, filecontent, commit_msg=None):
"""
REPLACE with call to write_and_commit + any necessary setup
used only by cave editor in