Imported Git auto-commit scripts from work with mild changes
This commit is contained in:
11
GitDaemon
Executable file
11
GitDaemon
Executable 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
|
||||
}
|
||||
Reference in New Issue
Block a user