Backport .travis.yml
Merge branch 'development'

Conflicts:
	.travis.yml
Honor %HOME% on windows

Use %HOME% before trying to figure out the windows user directory.
Users might set this as they are used on *nix systems.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Calculate the Windows user profile directory the same way as msysgit

On most systems %USERPROFILE% is the same as %HOMEDRIVE%\%HOMEPATH%,
however, for windows machines in an AD or domain environment this
might be different and %HOMEDRIVE%\%HOMEPATH% seems to be better.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Automatically detect msysgit installation path

Do not hardcode the installation path of msysgit, but read installation path from registry.
Also "%PROGRAMFILES%\Git\etc" won't work on x64 systems with 64-bit libgit2, because
msysgit is x86 only and located in "%ProgramFiles(x86)%\Git\etc".

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Correctly read xdr compatible %HOME%/.config/git/config config file

This file is not just read if the global config file (%HOME%/.gitconfig)
is not found, however, it is used everytime but with lower priority.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Fixed typo: xdr config needs to have a lower priority than the global one

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Fixed missing method

Signed-off-by: Sven Strickroth <email@cs-ware.de>
git_config_open_default: Honour xdr config

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Implemented the full msysgit fallback chain

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Find git installations based on %PATH%

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Move code to find msysgit path using registry to own method

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Make it compile with MinGW on Windows

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Added win32_ prefix for Win32-only methods

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Silence MinGW warnings

Signed-off-by: Sven Strickroth <email@cs-ware.de>
remote: set/unset the autotag setting on save

Make the configuration option match the configured behavior when
saving a remote.
remote: don't auto-follow tags on an unamed remote

An unnamed remote is used for commands like

    git fetch git://host/repo

where no tags should be downloaded. Make this the default.
Optimized win32_nextpath

Based on a suggestion by Russell Belfer.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Signed-off-by: Russell Belfer <rb@github.com>
Rename xdr to xdg

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Move win32 specific stuff to win32/findfile.c

Signed-off-by: Sven Strickroth <email@cs-ware.de>