Project is published.

This commit is contained in:
Schmidt Peter
2026-05-21 14:27:40 +02:00
committed by GitHub
commit 65e7c86424
24 changed files with 1793 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef GIT_OPS_H
#define GIT_OPS_H
#include "logger.h"
/* Returns 1 if clone_dir/project/.git exists, 0 otherwise */
int git_repo_exists(const char *clone_dir, const char *project);
/* Clone repo under clone_dir/project using token or password auth */
int git_clone(const char *base_url, const char *user,
const char *token, const char *password,
const char *project, const char *clone_dir,
Logger *log);
/* Pull latest in repo_path */
int git_pull(const char *repo_path, Logger *log);
#endif /* GIT_OPS_H */