Enhanced version control init

This commit is contained in:
Jon-William Lewis
2016-08-26 14:52:45 -05:00
parent a10aca70dc
commit 2641733128
4 changed files with 19 additions and 4 deletions

View File

@@ -117,6 +117,12 @@ if [ "$ENCRYPTION" == "TRUE" ]; then
fi
fi
# If $VCTL is defined, add the edited note to the repo.
if [ "$VCTL" ]; then
>&2 printf "%s %s %s\n" "- adding to" "$VCTL" "repo".
verctl "$VCTL" add ""$NOTES_DIR"/$NOTE"
verctl "$VCTL" commit -m "Added/Changed $NOTE" > /dev/null
fi
}
function help {
printf "\n%s" "usage: sns [-cedlp] <notebook/section/name>"