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>

Nguyễn Thái Ngọc Duy committed Jun 30, 2018 at 11:20 UTC c2ec417544b856f2c5f702657ea777b363af9976
1 file changed +11 -14
repository.h
+11 -14
@@ -108,19 +108,16 @@ struct set_gitdir_args {
108 const char *alternate_db;
109 };
110
111 -extern void repo_set_gitdir(struct repository *repo,
112 - const char *root,
113 - const struct set_gitdir_args *extra_args);
114 -extern void repo_set_worktree(struct repository *repo, const char *path);
115 -extern void repo_set_hash_algo(struct repository *repo, int algo);
116 -extern void initialize_the_repository(void);
117 -extern int repo_init(struct repository *r,
118 - const char *gitdir,
119 - const char *worktree);
120 -extern int repo_submodule_init(struct repository *submodule,
121 - struct repository *superproject,
122 - const char *path);
123 -extern void repo_clear(struct repository *repo);
111 +void repo_set_gitdir(struct repository *repo, const char *root,
112 + const struct set_gitdir_args *extra_args);
113 +void repo_set_worktree(struct repository *repo, const char *path);
114 +void repo_set_hash_algo(struct repository *repo, int algo);
115 +void initialize_the_repository(void);
116 +int repo_init(struct repository *r, const char *gitdir, const char *worktree);
117 +int repo_submodule_init(struct repository *submodule,
118 + struct repository *superproject,
119 + const char *path);
120 +void repo_clear(struct repository *repo);
121
122 /*
123 * Populates the repository's index from its index_file, an index struct will
@@ -130,6 +127,6 @@ extern void repo_clear(struct repository *repo);
127 * than zero if an error occured. If the repository's index has already been
128 * populated then the number of entries will simply be returned.
129 */
133 -extern int repo_read_index(struct repository *repo);
130 +int repo_read_index(struct repository *repo);
131
132 #endif /* REPOSITORY_H */