@@ -108,19 +108,16 @@ struct set_gitdir_args {
108
108
const char * alternate_db ;
109
109
};
110
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 );
124
121
125
122
/*
126
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);
130
127
* than zero if an error occured. If the repository's index has already been
131
128
* populated then the number of entries will simply be returned.
132
129
*/
133
- extern int repo_read_index (struct repository * repo );
130
+ int repo_read_index (struct repository * repo );
134
131
135
132
#endif /* REPOSITORY_H */
0 commit comments