Working with Git¶
Functions for dealing with Git
In this file functions are defined for dealing with the Git repository: creating the initial repository, committing changes to the task file or the auto file, and checking if the working directory is clean.
-
abed.git_util.
git_commit_auto
()[source]¶ Wrapper around
git_commit_file()
for the auto file
-
abed.git_util.
git_commit_file
(filename, message)[source]¶ Commit changes to a given file if necessary
This function commits changes to a given file to the git repository, using the provided message as the commit message. It also prints the message to the user with the
info()
function, with the addition of the word “Git”. Note that changes will only be committed if necessary.- Parameters
filename (str) – The filename of the file to commit.
message (str) – The commit message.
-
abed.git_util.
git_commit_tbd
()[source]¶ Wrapper around
git_commit_file()
for the TBD file