Code

git-am: fix detection of absolute paths for windows
authorPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 30 Sep 2010 13:24:07 +0000 (14:24 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 3 Oct 2010 22:31:59 +0000 (23:31 +0100)
commit5e9677cbdf1840836e22d9cf23198de34877e283
tree449c3b8f4b22f197f4ef70ffcda99b302bcb8c7c
parent36e035f5dcd214039d5ea96c29de110ae7435137
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