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

Re: git-config: replaces ~/.gitconfig symlink with real file

From: Fredrik Tolf <hidden>
Date: 2016-06-15 22:43:22

Johannes Schindelin [off-list ref] writes:
Hi,

On Mon, 16 Jul 2007, Bradford Smith wrote:
quoted
So, I guess I need to add a GIT_CONFIG_HOME environment variable.  If I 
get that done, I'll send a patch to the list including doc updates.
Alternatively, you could actually not ignore my hint at readlink(2) and 
have a proper fix, instead of playing games with environment variables.
Wouldn't it be nicer to avoid a lot of the complexity in checking
symlinks, environment variables and what not, and just overwrite the
file in place (with open(..., O_TRUNC | O_CREAT))? Does it happen
terribly often that git-config crashes in the middle and leaves the
file broken?

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