Thread (4 messages) flat view 4 messages, 4 authors, 2016-06-15

Re: [PATCH] config.c: Expand $HOME and tilde character in core.excludesfile

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:08

Hi,

On Mon, 28 Jan 2008, Jari Aalto wrote:
c* str_replace(): New function. Generic replace command.
* str_replace_home(): New funtion. Substitute $HOME and tilde(~) in string.
* git_default_config(): Pass core.excludesfile to str_replace_home().
I don't like it.  Not only do you fail to provide an example where this 
could be useful, you also introduce a memory leak for every excludes 
setting.

Besides, there is a more fundamental reason to reject this patch: it sets 
a path for an excludes file for everybody, but to a file which usually 
does not exist.

So either the user creates that file, in which case you can expect her to 
adjust ~/.gitconfig, too, or it is not created, in which case the setting 
in /etc/gitconfig is useless.

There is also a third option: there is a file created for every user from 
/etc/skel, but then there can also be a ~/.gitconfig.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help