magit/git-modes — pull request #33 by ruediger (2013-08-26 12:51:55+00:00)
Title: Support XDG_CONFIG_HOME for ignore/config mode.

From git-config(1)

$XDG_CONFIG_HOME/git/config
Second user-specific configuration file. If $XDG_CONFIG_HOME is not set or empty,
$HOME/.config/git/config will be used. Any single-valued variable set in this file
will be overwritten by whatever is in ~/.gitconfig. It is a good idea not to
create this file if you sometimes use older versions of Git, as support for this
file was added fairly recently.

And gitignore(5)

[...] Its default value is
$XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty,
$HOME/.config/git/ignore is used instead.

The current implementation is specific to the user's home directory
and does not work correctly for other users. I'm not sure what's the
best way to fix this or if this is even needed.

Signed-off-by: Rüdiger Sonderfeld