bash: offer refs for 'git bisect start'
[gitweb.git] / git-sh-setup.sh
index 8d54b73d3208064829613499580bad541586c725..ae031a1375e9c674d80b9fa3d3d3b76780deaf9f 100644 (file)
@@ -206,5 +206,20 @@ case $(uname -s) in
        find () {
                /usr/bin/find "$@"
        }
+       is_absolute_path () {
+               case "$1" in
+               [/\\]* | [A-Za-z]:*)
+                       return 0 ;;
+               esac
+               return 1
+       }
        ;;
+*)
+       is_absolute_path () {
+               case "$1" in
+               /*)
+                       return 0 ;;
+               esac
+               return 1
+       }
 esac