credentials: add "store" helper
authorJeff King <peff@peff.net>
Mon, 18 Jul 2011 07:58:14 +0000 (03:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2011 22:25:12 +0000 (15:25 -0700)
commit3fc3ee73327b955d9759e802ca3e3d9c08429925
tree6be6fe6b4dfa4302e2927d6aae93aa2097c4d886
parent2d6874d83a71b330e51475fd2f6dafedcfeecb44
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/t0300-credentials.sh