Enhanced version control init
This commit is contained in:
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user