From f277f41d83d450a1f28d350bb7d6da075d1d2741 Mon Sep 17 00:00:00 2001 From: Anshul Gupta Date: Wed, 9 Apr 2025 13:24:53 -0700 Subject: Initial Commit Add cmake github workflow Install dependencies in gh action Fix missing directory Fix compiler errors Fix group name to gid conversion Force cjson to statically link Add header guards to query headers Add install and cpack to CMakeLists.txt Add config search and CLI arg parsing Improve docs for git.c Fix program continuing on -h flag --- src/git.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/git.h (limited to 'src/git.h') diff --git a/src/git.h b/src/git.h new file mode 100644 index 0000000..1240b0f --- /dev/null +++ b/src/git.h @@ -0,0 +1,24 @@ +// +// Created by Anshul Gupta on 4/6/25. +// + +#ifndef GIT_H +#define GIT_H + +#include "config.h" + +struct repo_ctx { + const struct config *cfg; + + /// Name of the repo + const char *name; + /// HTTPS URL of the repo + const char *url; + /// GitHub username for authentication + const char *username; +}; + +int git_mirror_repo(const struct repo_ctx *ctx); + + +#endif // GIT_H -- cgit v1.2.3