git-am: fix detection of absolute paths for windows
commit9e480700345441ebe146f0d9b86a297b2020ea4e
authorPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 30 Sep 2010 13:24:07 +0000 (30 14:24 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 1 Oct 2010 22:21:34 +0000 (1 23:21 +0100)
tree683996e550917e1285972b34217778e59746a94c
parent0f5f51c8fb2804ada6ce41213424cda163db2839
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