X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/9344d99cba5549c443f50159044706a777e502bc..47bfbbfd7965fe91651dd485695855490f27e5e4:/.zsh/func/giturl diff --git a/.zsh/func/giturl b/.zsh/func/giturl index c85674a..9f96a5b 100755 --- a/.zsh/func/giturl +++ b/.zsh/func/giturl @@ -41,6 +41,7 @@ hash=$(git rev-parse HEAD) case "$oldstyle" in 0) + echo "$gitweb_base/$part" echo "$gitweb_base/$part/commitdiff/$hash" echo "$gitweb_base/$part/tree/HEAD" for i in $@; do @@ -49,11 +50,12 @@ case "$oldstyle" in done ;; *) + echo "$gitweb_base/?p=$part" echo "$gitweb_base/?p=$part;a=commitdiff;h=$hash" echo "$gitweb_base/?p=$part;a=tree;h=HEAD" for i in $@; do - [ -f "$i" ] && echo "$gitweb_base/?p=$part;a=blob;h=HEAD;f=$i" - [ -d "$i" ] && echo "$gitweb_base/?p=$part;a=tree;h=HEAD:f=$i" + [ -f "$i" ] && echo "$gitweb_base/?p=$part;a=blob;hb=HEAD;f=$i" + [ -d "$i" ] && echo "$gitweb_base/?p=$part;a=tree;hb=HEAD;f=$i" done ;; esac