Blame


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