Blob


1 struct got_repository {
2 char *path;
3 };
5 /* Open and close git repositories. */
6 const struct got_error *got_repo_open(struct got_repository**, const char *);
7 void got_repo_close(struct got_repository*);
9 /* Get the absolute path to the top-level directory of a repository. */
10 const char *got_repo_get_path(struct got_repository *);
12 /* Get a reference, by name, from a repository. */
13 const struct got_error *got_repo_get_reference(struct got_reference **,
14 struct got_repository *, const char *);