git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [GSoC] Move ~/.git-credential-cache to ~/.cache/git

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 11, 2017, 03:17 UTC
Message-ID
<xmqqinngwlhr.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<3B988055-D8A3-43B7-BF5F-C43479EF7BEB@cornell.edu>
Devin Lehmacher <djl329@cornell.edu> writes:
> If I’m not mistaken magit won’t stop working with the changed
> location since it will just spawn an new instance of the
> daemon. The only downside would be it wouldn’t get credentials
> that were cached in the default socket.

I am not quite sure how you can say "only" in that sentence. Isn't the whole point of socket based daemon interface to allow starting the daemon so that it can keep using it?

Somebody upthread mentioned checking the current location (and use it if there is) and then use the new location, which I found a more reasonable approach.

Assuming that it is sensible to move it from ~/.git-credential-cache to ~/.cache/git/ in the first place, that is. If both are equally acceptable places, then perhaps a configuration that allows those who want to have things in ~/.config/git/ to specify where to have the thing (and those without such a custom configuration will keep using the current location) may be more appropriate.

Previous: Devin Lehmacher
Message 5 of 5 in “[GSoC] Move ~/.git-credential-cache to ~/.cache/git”
  1. Devin LehmacherMar 10, 2017
  2. Jonathan NiederMar 11, 2017
  3. Noam PostavskyMar 11, 2017
  4. Devin LehmacherMar 11, 2017
  5. Junio C HamanoMar 11, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.