Compare commits

..

No commits in common. "0367e39c21355972d34bb6f1e03d9bcc74c4b025" and "20ad290b1bed0a7813c7e39a5cd5a7ecdc06aff3" have entirely different histories.

3 changed files with 15 additions and 13 deletions

View file

@ -516,6 +516,14 @@ a__git_re_set_hard() {
"${@}"
}
# show a commit
gsc() { a__git_show_commit "${@}"; }
a__git_show_commit() {
git \
show \
"${@}"
}
# current state of repository
gs() { a__git_status "${@}"; }
a__git_status() {
@ -525,14 +533,6 @@ a__git_status() {
"${@}"
}
# show a commit
#( gsc
a__git_show_commit() {
git \
show \
"${@}"
}
# tag a commit
gt() { a__git_tag "${@}"; }
a__git_tag() {

View file

@ -73,7 +73,7 @@ rwx_cache() {
text="$(cat "${path}")"
# all source code
RWX_CODE="${RWX_CODE}\
#. ${name}
# ${name}
${text}
"
}
@ -186,11 +186,13 @@ rwx_parse_code() {
}
rwx_parse_constants() {
printf "%s\n" "${RWX_CODE}" |
sed "/${RWX_REGEX_TARGET_CONSTANT}/s|${RWX_REGEX_TARGET_CONSTANT}|\\1|"
grep "${RWX_REGEX_BEGIN}${RWX_REGEX_CONSTANT}${RWX_REGEX_SET}" |
sed "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|"
}
rwx_parse_functions() {
printf "%s\n" "${RWX_CODE}" |
sed "/${RWX_REGEX_TARGET_FUNCTION}/s|${RWX_REGEX_TARGET_FUNCTION}|\\1|"
grep "${RWX_REGEX_BEGIN}${RWX_REGEX_FUNCTION}${RWX_REGEX_OPEN}" |
sed "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|"
}
# ╭──────┬─────╮

View file

@ -8,9 +8,9 @@ rwx_doc() {
while IFS= read -r line; do
case "${line}" in
"#!"*) doc="" ;;
"#."*)
"#"*)
doc=""
module="$(echo "${line}" | sed "s|#\\. \\(.*\\)|\\1|")"
module="$(echo "${line}" | sed "s|# \\(.*\\)|\\1|")"
;;
*"#"*)
[ -n "${doc}" ] && doc="${doc}