Imported Git auto-commit scripts from work with mild changes

This commit is contained in:
2021-05-10 18:18:28 +03:00
parent d5fabf5f16
commit 9f1235ec87
2 changed files with 28 additions and 0 deletions

11
GitDaemon Executable file
View File

@@ -0,0 +1,11 @@
#small script to be appended to bash.profile; calls the GitUpstreamer script to auto-commit changes
function cd {
# Actually change the directory with all args passed to the function
if builtin cd "$@"; then
# If the dir exists, run the git script on git directories
if [[ -d ".git" ]] ; then
echo "[git]: Note $(pwd) is under Git revision control."
. "$SCRIPTS/GitUpstreamer"
fi
fi
}