credential: add credential.*.username
commitd5742425ebfd3060fd181195f3be84cd28c1d06f
authorJeff King <peff@peff.net>
Sat, 10 Dec 2011 10:31:30 +0000 (10 05:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2011 07:16:24 +0000 (11 23:16 -0800)
treeed7860e560e9ad0690f73d7375b4b067a13556f4
parent118250728e1aa46c19d4d258950b2ba15cb6d5d2
credential: add credential.*.username

Credential helpers can help users avoid having to type their
username and password over and over. However, some users may
not want a helper for their password, or they may be running
a helper which caches for a short time. In this case, it is
convenient to provide the non-secret username portion of
their credential via config.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential.c
t/t0300-credentials.sh
t/t5550-http-fetch.sh