From 2d6dc182b8fa171a6b283ce6e8e75a35e13ea67a Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sun, 24 Jun 2012 13:40:00 +0200 Subject: 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 --- builtin/credential.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'builtin/credential.c') diff --git a/builtin/credential.c b/builtin/credential.c index c185c07a22..0412fa00f0 100644 --- a/builtin/credential.c +++ b/builtin/credential.c @@ -19,10 +19,7 @@ int cmd_credential(int argc, const char **argv, const char *prefix) if (!strcmp(op, "fill")) { credential_fill(&c); - if (c.username) - printf("username=%s\n", c.username); - if (c.password) - printf("password=%s\n", c.password); + credential_write(&c, stdout); } else if (!strcmp(op, "approve")) { credential_approve(&c); } else if (!strcmp(op, "reject")) { -- cgit v1.2.1