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

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

From
YFYour friend <pickfire@riseup.net>
Date
Mar 15, 2016, 02:14 UTC
Message-ID
<c74296a0db1cac9daf5da00756ab0313@riseup.net>
In-Reply-To
<CAKqreuw0hafi-GwWD-UaGKwmG8xVK6ZJDcw2jpQXAAuK+XBZvQ@mail.gmail.com>
On 15/03/2016 09:32, 惠轶群 wrote:
Show 22 quoted lines
>> You sound like you think it is better to check the location of the
>> existing socket,
> 
> Yes, for the purpose of compatibility, it's the only choice, as I can 
> see.
> 
> To sum up, I'd like to implement:
> 
> 1. <path> is configured by --socket, then put it here.
> 2. else if `~/.git-credential-cache` exists, put the socket under here.
> 3. else, put the socket under
> `$XDG_RUNTIME_DIR/git/credential-cache.sock`,
> if $XDG_RUNTIME_DIR does not exist, default to
> `/tmp/git-$UID/credential-cache.sock`.
> 
> As a result, new user will use xdg-compatible path while old user will 
> not
> be surprised.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Hi, I am Ivan Tham 谭俊浩, I know a bit of C and more in python, I am currently taking foundation in a Asia Pacific University.

I would really like to work on this microproject for gsoc too but too bad 惠轶群 had taken it. :(

I think it should be in ~/$XDG_CACHE_HOME/git/credential or ~/.cache/git/credential instead of ~/.config/git/credential.

Previous: 惠轶群Next: Jeff King
Message 6 of 30 in “[GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"”
  1. 惠轶群Mar 14, 2016
  2. Junio C HamanoMar 14, 2016
  3. 惠轶群Mar 14, 2016
  4. Junio C HamanoMar 14, 2016
  5. 惠轶群Mar 15, 2016
  6. Your friendMar 15, 2016
  7. Jeff KingMar 15, 2016
  8. 1/3 path.c: implement xdg_runtime_dir()Hui Yiqun, Mar 16, 2016
  9. 2/3 git-credential-cache: put socket to xdg-compatible pathHui Yiqun, Mar 16, 2016
  10. 惠轶群Mar 17, 2016
  11. 3/3 t0301: test credential-cache support of XDG_RUNTIME_DIRHui Yiqun, Mar 16, 2016
  12. Junio C HamanoMar 16, 2016
  13. 惠轶群Mar 16, 2016
  14. Jeff KingMar 16, 2016
  15. Junio C HamanoMar 16, 2016
  16. 谭俊浩Mar 17, 2016
  17. Junio C HamanoMar 17, 2016
  18. 惠轶群Mar 17, 2016
  19. 惠轶群Mar 17, 2016
  20. Jeff KingMar 16, 2016
  21. 惠轶群Mar 18, 2016
  22. Jeff KingMar 16, 2016
  23. 惠轶群Mar 17, 2016
  24. Ivan ThamMar 15, 2016
  25. Jeff KingMar 15, 2016
  26. 惠轶群Mar 16, 2016
  27. Jeff KingMar 18, 2016
  28. 惠轶群Mar 18, 2016
  29. 惠轶群Mar 18, 2016
  30. credential-cache--daemon: clarify "exit" action semanticsJeff King, Mar 18, 2016

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.