Files
git/path.c
Steffen Prohaska 4d2a9e8f60 refactor help.c to git_install_prefix() and make_native_separator()
git_install_prefix() returns the install prefix of msysgit. For
all other architectures it returns "". The path returned contains
slashes.

make_native_separator() takes a unix path (slashes) and converts
the separators in place. On Windows slashes are converted to
backslashes.

All the code was available in help.c and is now moved to path.c.

The new function will be used to located the templates and /etc/gitconfig.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-27 11:08:20 +02:00

8.7 KiB