repository.h: drop extern from function declaration

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2018-06-30 11:20:29 +02:00 committed by Junio C Hamano
parent d2865daa39
commit c2ec417544

View File

@ -108,19 +108,16 @@ struct set_gitdir_args {
const char *alternate_db; const char *alternate_db;
}; };
extern void repo_set_gitdir(struct repository *repo, void repo_set_gitdir(struct repository *repo, const char *root,
const char *root, const struct set_gitdir_args *extra_args);
const struct set_gitdir_args *extra_args); void repo_set_worktree(struct repository *repo, const char *path);
extern void repo_set_worktree(struct repository *repo, const char *path); void repo_set_hash_algo(struct repository *repo, int algo);
extern void repo_set_hash_algo(struct repository *repo, int algo); void initialize_the_repository(void);
extern void initialize_the_repository(void); int repo_init(struct repository *r, const char *gitdir, const char *worktree);
extern int repo_init(struct repository *r, int repo_submodule_init(struct repository *submodule,
const char *gitdir, struct repository *superproject,
const char *worktree); const char *path);
extern int repo_submodule_init(struct repository *submodule, void repo_clear(struct repository *repo);
struct repository *superproject,
const char *path);
extern void repo_clear(struct repository *repo);
/* /*
* Populates the repository's index from its index_file, an index struct will * Populates the repository's index from its index_file, an index struct will
@ -130,6 +127,6 @@ extern void repo_clear(struct repository *repo);
* than zero if an error occured. If the repository's index has already been * than zero if an error occured. If the repository's index has already been
* populated then the number of entries will simply be returned. * populated then the number of entries will simply be returned.
*/ */
extern int repo_read_index(struct repository *repo); int repo_read_index(struct repository *repo);
#endif /* REPOSITORY_H */ #endif /* REPOSITORY_H */