Commit Diff


commit - bfab4d9a4394df99f84805a5fbb0de9c170a011d
commit + a0448d6073bd074843f84f72d1475f63c099231d
blob - 7d9c9c23fc76ace9f171b147f75245d418254d7c
blob + 65e7c610c725361e0c22696225499962bdad27aa
--- include/got_repository.h
+++ include/got_repository.h
@@ -22,9 +22,6 @@ struct got_repository {
 const struct got_error *got_repo_open(struct got_repository**, const char *);
 void got_repo_close(struct got_repository*);
 
-/* Get the absolute path to the top-level directory of a repository. */
-const char *got_repo_get_path(struct got_repository *);
-
 char *got_repo_get_path_git_dir(struct got_repository *);
 char *got_repo_get_path_objects(struct got_repository *);
 char *got_repo_get_path_refs(struct got_repository *);
blob - 9e794a4d7f4135d316e402f7d6740e6612b55756
blob + e7108eb0fe03a0ebe936708af2b03c31d9bc4e95
--- lib/repository.c
+++ lib/repository.c
@@ -139,9 +139,3 @@ got_repo_close(struct got_repository *repo)
 	free(repo->path);
 	free(repo);
 }
-
-const char *
-got_repo_get_path(struct got_repository *repo)
-{
-	return repo->path;
-}