From: Paul Hänsch Date: Thu, 27 Jul 2023 07:33:35 +0000 (+0200) Subject: show diff of original language version on revisions page X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6545f22667272df9f4484d5cfe2c2b10380fe9c1;p=shellwiki show diff of original language version on revisions page --- diff --git a/macros/revisions b/macros/revisions index 4271149..75440d6 100755 --- a/macros/revisions +++ b/macros/revisions @@ -4,16 +4,44 @@ . "$_EXEC/tools.sh" . "$_EXEC/acl.sh" -page="$1" +LIST=true DIFF= +while [ $# -gt 0 ]; do case $1 in + --list) + LIST=true + shift 1 + ;; + --no-list) + LIST= + shift 1 + ;; + --diff) + DIFF=true + shift 1 + ;; + --no-diff) + DIFF= + shift 1 + ;; + *)page="$1" + shift 1 + ;; +esac; done + page_abs="$(page_abs "$page")" +page_default="${page_abs%:*/}" if ! acl_read "$page_abs"; then return 0 -elif [ "$REV_PAGES" != true ]; then - printf '
GIT is not available to handle revisioning.
' fi -printf '