Compare commits

..

No commits in common. "6ba73ec57381f957ab140c9610c4c8f60fc98171" 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 # current state of repository
gs() { a__git_status "${@}"; } gs() { a__git_status "${@}"; }
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 # tag a commit
gt() { a__git_tag "${@}"; } gt() { a__git_tag "${@}"; }
a__git_tag() { a__git_tag() {

View file

@ -73,7 +73,7 @@ rwx_cache() {
text="$(cat "${path}")" text="$(cat "${path}")"
# all source code # all source code
RWX_CODE="${RWX_CODE}\ RWX_CODE="${RWX_CODE}\
#. ${name} # ${name}
${text} ${text}
" "
} }
@ -186,11 +186,13 @@ rwx_parse_code() {
} }
rwx_parse_constants() { rwx_parse_constants() {
printf "%s\n" "${RWX_CODE}" | printf "%s\n" "${RWX_CODE}" |
sed --silent "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|p" grep "${RWX_REGEX_BEGIN}${RWX_REGEX_CONSTANT}${RWX_REGEX_SET}" |
sed "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|"
} }
rwx_parse_functions() { rwx_parse_functions() {
printf "%s\n" "${RWX_CODE}" | printf "%s\n" "${RWX_CODE}" |
sed --silent "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|p" 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 while IFS= read -r line; do
case "${line}" in case "${line}" in
"#!"*) doc="" ;; "#!"*) doc="" ;;
"#."*) "#"*)
doc="" doc=""
module="$(echo "${line}" | sed "s|#\\. \\(.*\\)|\\1|")" module="$(echo "${line}" | sed "s|# \\(.*\\)|\\1|")"
;; ;;
*"#"*) *"#"*)
[ -n "${doc}" ] && doc="${doc} [ -n "${doc}" ] && doc="${doc}