From 4652d83b497a1b41d6ef4be5490f32cfa30ca33c Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 28 Dec 2024 17:04:36 +0000 Subject: Comments adjusted --- core/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/utils.py') diff --git a/core/utils.py b/core/utils.py index 161a7f6..798e48f 100644 --- a/core/utils.py +++ b/core/utils.py @@ -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 -- cgit v1.2.3