author | Johannes Sixt <johannes.sixt@telecom.at> | |
Wed, 5 Mar 2008 20:51:27 +0000 (21:51 +0100) | ||
committer | Johannes Sixt <johannes.sixt@telecom.at> | |
Mon, 23 Jun 2008 11:30:22 +0000 (13:30 +0200) | ||
commit | 25fe217b86ca40c53e710d776e120dfa0d81f60b | |
tree | 17d027b37da265e44e48bf01f872cf20c1e6d931 | tree | snapshot |
parent | 4cd148d83f852363363e921c4925e67601654ff6 | commit | diff |
Windows: Treat Windows style path names.
GIT's guts work with a forward slash as a path separators. We do not change
that. Rather we make sure that only "normalized" paths enter the depths
of the machinery.
We have to translate backslashes to forward slashes in the prefix and in
command line arguments. Fortunately, all of them are passed through
functions in setup.c.
A macro has_dos_drive_path() is defined that checks whether a path begins
with a drive letter+colon combination. This predicate is always false on
Unix. Another macro is_dir_sep() abstracts that a backslash is also a
directory separator on Windows.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
GIT's guts work with a forward slash as a path separators. We do not change
that. Rather we make sure that only "normalized" paths enter the depths
of the machinery.
We have to translate backslashes to forward slashes in the prefix and in
command line arguments. Fortunately, all of them are passed through
functions in setup.c.
A macro has_dos_drive_path() is defined that checks whether a path begins
with a drive letter+colon combination. This predicate is always false on
Unix. Another macro is_dir_sep() abstracts that a backslash is also a
directory separator on Windows.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
cache.h | diff | blob | history | |
compat/mingw.c | diff | blob | history | |
compat/mingw.h | diff | blob | history | |
git-compat-util.h | diff | blob | history | |
setup.c | diff | blob | history |