Code

Merge branch 'cw/gitweb-hilite-config'
[git.git] / git-sh-setup.sh
index 6131670860514c215a6b9b7417dd05c3124e81b4..58d30c9388f14284214fee8ade4603a03e02b3b2 100644 (file)
@@ -209,5 +209,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