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

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:21

Possibly related (same subject, not in this thread)

"Bradford Smith" [off-list ref] writes:
...  So, I guess I need to add a GIT_CONFIG_HOME
environment variable.
I suspect that is going down a wrong path.

We use the sequence:

	fd = creat("temporary location");
        write(fd, ...);
        close(fd);
        rename("temporary location", "final location");

in quite a lot of codepaths.  I think they can be factored out,
to take the "final location" (and perhaps a suggested temporary
directory) as an parameter, and that code can check that "final
location" is a symlink to somewhere else and create the
temporary next to the target file.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help