git-am: fix detection of absolute paths for windows
commit7d42fa83fbbdc43a78d0940c1324e4deb1eef9e7
authorPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 30 Sep 2010 13:24:07 +0000 (30 14:24 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 24 Oct 2010 23:04:11 +0000 (25 00:04 +0100)
tree6aa7e6d744d232d829c83934926f9fd2cdb7602b
parente6c3d574035f4453c87f16ff4f6b649718758145
git-am: fix detection of absolute paths for windows

Add an is_absolute_path function to abstract out platform differences
in checking for an absolute or relative path.
Specifically fixes t4150-am on Windows.

[PT: updated following suggestion from j6t to support \* and //*]

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-am.sh
git-sh-setup.sh