]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/credential-store.c
make credential helpers builtins
[thirdparty/git.git] / builtin / credential-store.c
similarity index 96%
rename from credential-store.c
rename to builtin/credential-store.c
index 294e77168156225efcb3b6840bc1dd7883c6dcac..5331ab151a6f6052dc532ab32875f864070e3b72 100644 (file)
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "builtin.h"
 #include "lockfile.h"
 #include "credential.h"
 #include "string-list.h"
@@ -143,7 +143,7 @@ static void lookup_credential(const struct string_list *fns, struct credential *
                        return; /* Found credential */
 }
 
-int cmd_main(int argc, const char **argv)
+int cmd_credential_store(int argc, const char **argv, const char *prefix)
 {
        const char * const usage[] = {
                "git credential-store [<options>] <action>",
@@ -161,7 +161,7 @@ int cmd_main(int argc, const char **argv)
 
        umask(077);
 
-       argc = parse_options(argc, (const char **)argv, NULL, options, usage, 0);
+       argc = parse_options(argc, (const char **)argv, prefix, options, usage, 0);
        if (argc != 1)
                usage_with_options(usage, options);
        op = argv[0];