summaryrefslogtreecommitdiff
path: root/git.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-31 17:21:52 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-07-31 17:22:54 -0300
commit1b4494dc48fa3cea783ec09acfe6b20f67ce0c31 (patch)
tree053994cdb5877e0045342893052996ae9d6ec947 /git.h
parent31bb4276c730c70fcdaa89d270d32ab15c4975d2 (diff)
git: Add `git_repo` struct
This will be used to replace most instances of `git_repository`.
Diffstat (limited to 'git.h')
-rw-r--r--git.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/git.h b/git.h
index ac3455b..e6514e2 100644
--- a/git.h
+++ b/git.h
@@ -11,6 +11,7 @@ typedef struct pull_request pull_request;
typedef struct file file;
typedef struct comment comment;
typedef struct git_branch git_branch;
+typedef struct git_repo git_repo;
struct file {
char *name; /* Name of file. */
@@ -30,6 +31,11 @@ struct git_branch {
char *repo; /* Path, or URL to local, or remote repository. */
};
+struct git_repo {
+ char *name; /* Name of git repository. */
+ git_repository *repo; /* Git repository. */
+};
+
struct pull_request {
char *title; /* Title of the pull request. */
char *desc; /* Description of the pull request. */