diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-12-19 22:50:20 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-12-19 22:50:20 +0200 |
| commit | 40c44d2fb63dbe484824c9dbc7c098c797ad10a1 (patch) | |
| tree | cd26714f775a4ba52e8b3160d46364dc3a1e8461 /src/git2 | |
| parent | fe93dabeef1f2757e73757bb2ec2dd3c912325a8 (diff) | |
| download | libgit2-40c44d2fb63dbe484824c9dbc7c098c797ad10a1.tar.gz | |
Fix issues in repository initialization
Implemented recursive directory creation
Fix style issues
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git2')
| -rw-r--r-- | src/git2/repository.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/git2/repository.h b/src/git2/repository.h index 4c7ba8ded..4eaa6f2ba 100644 --- a/src/git2/repository.h +++ b/src/git2/repository.h @@ -163,20 +163,21 @@ GIT_EXTERN(int) git_repository_newobject(git_object **object, git_repository *re GIT_EXTERN(void) git_repository_free(git_repository *repo); /** - * Creates a new Git repository. + * Creates a new Git repository in the given folder. * - * Limits: - * - Reinit of an existing directory is not implemented yet. Will blindly return GIT_SUCCESS. - * - The parent directory structure of the repository has to already exist. Recursive building of the parent tree structure is not implemented yet. - * - Config file creation handling is not implemented yet. + * TODO: + * - Reinit the repository + * - Create config files * * @param repo_out pointer to the repo which will be created or reinitialized * @param path the path to the repository - * @param is_bare if true, a Git repository without a working directory is created at the pointed path. - * If false, provided path will be considered as the working directory into which the .git directory will be created. + * @param is_bare if true, a Git repository without a working directory is created + * at the pointed path. If false, provided path will be considered as the working + * directory into which the .git directory will be created. + * * @return 0 on success; error code otherwise */ -GIT_EXTERN(int) git_repository_init(git_repository** repo_out, const char* path, unsigned is_bare); +GIT_EXTERN(int) git_repository_init(git_repository **repo_out, const char *path, unsigned is_bare); /** @} */ GIT_END_DECL |
