diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2012-06-24 13:40:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-25 11:56:24 -0700 |
commit | 2d6dc182b8fa171a6b283ce6e8e75a35e13ea67a (patch) | |
tree | 8f2e6170136cf7a4a63b8ef6083327e91c8c4fae /credential.c | |
parent | e30b2feb1b50c2d14d32dc3e6e41f7b20a677ff2 (diff) | |
download | git-2d6dc182b8fa171a6b283ce6e8e75a35e13ea67a.tar.gz |
git credential fill: output the whole 'struct credential'
Instead of outputing only the username and password, print all the
attributes, even those that already appeared in the input.
This is closer to what the C API does, and allows one to take the exact
output of "git credential fill" as input to "git credential approve" or
"git credential reject".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.c')
-rw-r--r-- | credential.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/credential.c b/credential.c index 62d1c56819..2c400073fa 100644 --- a/credential.c +++ b/credential.c @@ -191,7 +191,7 @@ static void credential_write_item(FILE *fp, const char *key, const char *value) fprintf(fp, "%s=%s\n", key, value); } -static void credential_write(const struct credential *c, FILE *fp) +void credential_write(const struct credential *c, FILE *fp) { credential_write_item(fp, "protocol", c->protocol); credential_write_item(fp, "host", c->host); |