diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-12-28 17:04:36 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-12-28 17:04:36 +0000 |
commit | 4652d83b497a1b41d6ef4be5490f32cfa30ca33c (patch) | |
tree | 4aa22dc463817c848f77eacd0e4dea7275ca2e7b /core/utils.py | |
parent | 8dbad16ece1ebbe4f65b56bbc26c7be526bbe328 (diff) | |
download | troggle-4652d83b497a1b41d6ef4be5490f32cfa30ca33c.tar.gz troggle-4652d83b497a1b41d6ef4be5490f32cfa30ca33c.tar.bz2 troggle-4652d83b497a1b41d6ef4be5490f32cfa30ca33c.zip |
Comments adjusted
Diffstat (limited to 'core/utils.py')
-rw-r--r-- | core/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |