Code

credentials: add "cache" helper
authorJeff King <peff@peff.net>
Sat, 10 Dec 2011 10:34:14 +0000 (05:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2011 07:16:25 +0000 (23:16 -0800)
commite2770979fec968a25ac21e34f9082bc17a71a780
tree5ae5a950fec8c52cab6a0ee21f48d0912bafcafd
parenta6fc9fd3f4b42cd97b5262026e18bd451c28ee3c
credentials: add "cache" helper

If you access repositories over smart-http using http
authentication, then it can be annoying to have git ask you
for your password repeatedly. We cache credentials in
memory, of course, but git is composed of many small
programs. Having to input your password for each one can be
frustrating.

This patch introduces a credential helper that will cache
passwords in memory for a short period of time.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
.gitignore
Documentation/git-credential-cache--daemon.txt [new file with mode: 0644]
Documentation/git-credential-cache.txt [new file with mode: 0644]
Documentation/gitcredentials.txt
Makefile
credential-cache--daemon.c [new file with mode: 0644]
credential-cache.c [new file with mode: 0644]
git-compat-util.h
t/lib-credential.sh
t/t0301-credential-cache.sh [new file with mode: 0755]
unix-socket.c [new file with mode: 0644]
unix-socket.h [new file with mode: 0644]