From 921c65810da2b72fe754c361deb66af8cf367c3f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 30 Jul 2010 22:23:37 +0200 Subject: [PATCH] output additional information --- .zsh/func/giturl | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5