From 1b4494dc48fa3cea783ec09acfe6b20f67ce0c31 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 31 Jul 2022 17:21:52 -0300 Subject: git: Add `git_repo` struct This will be used to replace most instances of `git_repository`. --- git.h | 6 ++++++ 1 file changed, 6 insertions(+) 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. */ -- cgit v1.2.3-13-gbd6f