]> git.ipfire.org Git - thirdparty/git.git/commitdiff
credential: correct order of parameters for credential_match
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Tue, 5 May 2020 01:39:06 +0000 (18:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 May 2020 05:56:33 +0000 (22:56 -0700)
Since the beginning in 118250728e (credential: apply helper config,
2011-12-10), the declaration for that function used a different order
than the implementation.

All callers use the same order than the implementation, so update
the declaration in credential.h to match.

Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential.h

index f51703d9ce3901a645509eee06d0e039ae77e5b4..c0e17e3554fce30586abe8a32aad503e4ec92b03 100644 (file)
@@ -189,7 +189,7 @@ void credential_write(const struct credential *, FILE *);
 void credential_from_url(struct credential *, const char *url);
 int credential_from_url_gently(struct credential *, const char *url, int quiet);
 
-int credential_match(const struct credential *have,
-                    const struct credential *want);
+int credential_match(const struct credential *want,
+                    const struct credential *have);
 
 #endif /* CREDENTIAL_H */