GitLab system status is available here and here

Commit 5f7fc0fe authored by Anthony Umemoto's avatar Anthony Umemoto
Browse files

v1.2.0 doc update

parent 345433d2
......@@ -80,7 +80,7 @@ If the correct URL is returned, then the repair should work.
`d dir` Changes the git repo being managed. The file path should be from the current working directory.
`b branch` Moves to branch. Creates branch if it does not exist.
`b branch` Moves to branch. Creates branch if it does not exist. If no branch is specified, then the branch list will be printed.
`f freq` Changes the interval between each commit.
......@@ -107,6 +107,7 @@ If you encounter a bug, please report it using this form: https://docs.google.co
### UNEXPECTED/UNWANTED BEHAVIORS
+ A commit is counted even if nothing is pushed. This is seen in the verbose output, and the program output.
+ Usage and synopsis may not fit in terminal windows completely. This is particularly a problem for terminals that cannot scroll up.
### ARCHITECTURE
......
#!/bin/bash
# USAGE MESSAGES ---------------------------------------------------------
function gm_options {
echo "RUNTIME OPTIONS"
echo " q Quits the program."
......@@ -7,11 +9,12 @@ function gm_options {
echo " s Toggle commit and push summaries."
echo " d dir Changes the git repository being managed."
echo " The file path should be from the current working directory."
echo " b branch Moves to branch. Creates branch if it does not exist."
echo " If no branch is specified, then the branch list will be printed."
echo " f freq Changes the interval between each commit."
echo " a file Add a single file to the commit list."
echo " r file Removes a single file from the commit list."
echo " l Displays the commit list."
echo " b branch Moves to branch. Creates branch if it does not exist."
echo " h Display program runtime options."
}
......@@ -48,6 +51,8 @@ function gm_usage {
echo " Anthony Umemoto 2022, with debugging assistance from Omar Ahmadyar."
}
# COMMAND LINE ARGUMENTS -------------------------------------------------
# all vars are prepended with "gm_" to avoid overriding other global vars
# default options
......@@ -204,6 +209,8 @@ fi
echo "Moved to $gm_branch branch."
git branch
# PROGRAM RUNTIME LOOP ---------------------------------------------------
gm_sreps=0 # counts how many reps were completed while program was running
gm_cmd="" # stores command if one is used during program runtime
gm_arg="" # stores argument if command requires one
......@@ -289,7 +296,7 @@ while (( $gm_reps > 0 )); do
b) # change branch
if [[ $gm_arg == "" ]]; then
echo "Branch name must be specified, remaining in $gm_branch branch."
git branch
else
gm_branch=$gm_arg
......@@ -356,6 +363,8 @@ while (( $gm_reps > 0 )); do
done
# OUTPUT AND PROGRAM END -------------------------------------------------
# program output
gm_total_t=$(( $(( $(date "+%s") - $gm_stime )) / 60 )) # minutes since loop started
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment