#
# func/giturl
#
-# a convenient way to display the gitweb URL of a commit-ish
+# A convenient way to display the gitweb URL of a commit-ish, as well as the
+# base URL and tree. Also for each argument, the tree or blob URL is printed.
#
# Copyright © 2010 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
local part
case "$REMOTE" in
- madduck:pub/*)
+ madduck:pub/*|ssh://git.madduck.net/madduck/pub/*)
part="${REMOTE#madduck:pub/}"
+ part="${part#ssh://git.madduck.net/madduck/pub/}"
part="${part%.git}.git"
;;
*)