From: Eric Sunshine Date: Sat, 03 Mar 2018 08:42:57 GMT Subject: Re: [PATCH] git.el: handle default excludesfile properly Message-ID: In-Reply-To: <20180303034803.21589-1-dorabpatel@gmail.com> On Fri, Mar 2, 2018 at 10:48 PM, Dorab Patel wrote: > The previous version only looked at core.excludesfile for locating the > excludesfile. So, when core.excludesfile was not defined, it did not > use the possible default locations. > > The current version uses either $XDG_CONFIG_HOME/git/ignore or > $HOME/.config/git/ignore for the default excludesfile location > depending on whether XDG_CONFIG_HOME is defined or not. As per the > documentation of gitignore. Perhaps take $HOME/.gitignore into account too? > Signed-off-by: Dorab Patel