path: root/credential.h
diff options
authorMatthieu Moy <>2012-06-24 11:40:00 (GMT)
committerJunio C Hamano <>2012-06-25 18:56:24 (GMT)
commit2d6dc182b8fa171a6b283ce6e8e75a35e13ea67a (patch)
tree8f2e6170136cf7a4a63b8ef6083327e91c8c4fae /credential.h
parente30b2feb1b50c2d14d32dc3e6e41f7b20a677ff2 (diff)
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 <>
Diffstat (limited to 'credential.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/credential.h b/credential.h
index 96ea41b..0c3e85e 100644
--- a/credential.h
+++ b/credential.h
@@ -26,6 +26,7 @@ void credential_approve(struct credential *);
void credential_reject(struct credential *);
int credential_read(struct credential *, FILE *);
+void credential_write(const struct credential *, FILE *);
void credential_from_url(struct credential *, const char *url);
int credential_match(const struct credential *have,
const struct credential *want);