From: martin f. krafft Date: Fri, 30 Jul 2010 20:23:37 +0000 (+0200) Subject: output additional information X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/921c65810da2b72fe754c361deb66af8cf367c3f?ds=inline;hp=e00e7f7a1886640cc18d114a48a1ddf75cebdfa4 output additional information --- diff --git a/.zsh/func/giturl b/.zsh/func/giturl index f001308..e4dfa5f 100755 --- a/.zsh/func/giturl +++ b/.zsh/func/giturl @@ -28,5 +28,12 @@ case "$REMOTE" in ;; esac +echo $GITWEB_BASE/$part HASH=$(git rev-parse HEAD) echo $GITWEB_BASE/$part/commitdiff/$HASH + +echo $GITWEB_BASE/$part/tree/HEAD +for i in $@; do + [ -f "$i" ] && echo "$GITWEB_BASE/$part/blob/HEAD:/$i" + [ -d "$i" ] && echo "$GITWEB_BASE/$part/tree/HEAD:/$i" +done