mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
This function tests whether there is a C: style prefix in the argument. It returns always 0 on Unix. With this functions a number of conditionals #ifdef __MINGW32__/#endif can be removed. The getcwd() replacement was simplified: It tried to elide the translation of backslashes to slashes if there was no drive prfix, but this optimization is wrong: We could be looking at an UNC path, which we also want to translate. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>