Compare commits
5 commits
20ad290b1b
...
6ba73ec573
Author | SHA1 | Date | |
---|---|---|---|
6ba73ec573 | |||
25efbc44cf | |||
3344390f40 | |||
a8224fe057 | |||
75fa712be4 |
3 changed files with 13 additions and 15 deletions
|
@ -516,14 +516,6 @@ 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() {
|
||||||
|
@ -533,6 +525,14 @@ 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() {
|
||||||
|
|
|
@ -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,13 +186,11 @@ rwx_parse_code() {
|
||||||
}
|
}
|
||||||
rwx_parse_constants() {
|
rwx_parse_constants() {
|
||||||
printf "%s\n" "${RWX_CODE}" |
|
printf "%s\n" "${RWX_CODE}" |
|
||||||
grep "${RWX_REGEX_BEGIN}${RWX_REGEX_CONSTANT}${RWX_REGEX_SET}" |
|
sed --silent "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|p"
|
||||||
sed "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|"
|
|
||||||
}
|
}
|
||||||
rwx_parse_functions() {
|
rwx_parse_functions() {
|
||||||
printf "%s\n" "${RWX_CODE}" |
|
printf "%s\n" "${RWX_CODE}" |
|
||||||
grep "${RWX_REGEX_BEGIN}${RWX_REGEX_FUNCTION}${RWX_REGEX_OPEN}" |
|
sed --silent "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|p"
|
||||||
sed "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────┬─────╮
|
# ╭──────┬─────╮
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue