credentials: add "store" helper
commit71e1b4b6bf7f274f0b3bf45e7325c04abb405b8a
authorJeff King <peff@peff.net>
Sat, 10 Dec 2011 10:34:44 +0000 (10 05:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Dec 2011 00:09:38 +0000 (12 16:09 -0800)
tree902302e51c4401b0519f431b4e424856d7778a82
parentc505116b91d3c92f0c3066cb9806773d2df11088
credentials: add "store" helper

This is like "cache", except that we actually put the
credentials on disk. This can be terribly insecure, of
course, but we do what we can to protect them by filesystem
permissions, and we warn the user in the documentation.

This is not unlike using .netrc to store entries, but it's a
little more user-friendly. Instead of putting credentials in
place ahead of time, we transparently store them after
prompting the user for them once.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Documentation/git-credential-store.txt [new file with mode: 0644]
Documentation/gitcredentials.txt
Makefile
credential-store.c [new file with mode: 0644]
t/t0302-credential-store.sh [new file with mode: 0755]