diff options
author | 2025-04-09 13:24:53 -0700 | |
---|---|---|
committer | 2025-04-11 00:15:18 -0700 | |
commit | f277f41d83d450a1f28d350bb7d6da075d1d2741 (patch) | |
tree | e197a7de7e26b47cec57a46acdde4b6c74889ad5 /src/git.h | |
download | github-mirror-f277f41d83d450a1f28d350bb7d6da075d1d2741.tar.gz github-mirror-f277f41d83d450a1f28d350bb7d6da075d1d2741.tar.zst github-mirror-f277f41d83d450a1f28d350bb7d6da075d1d2741.zip |
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
Diffstat (limited to 'src/git.h')
-rw-r--r-- | src/git.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 |