@@ -230,7 +230,7 @@ struct rev_info {
230
230
struct revision_sources * sources ;
231
231
};
232
232
233
- extern int ref_excluded (struct string_list * , const char * path );
233
+ int ref_excluded (struct string_list * , const char * path );
234
234
void clear_ref_exclusion (struct string_list * * );
235
235
void add_ref_exclusion (struct string_list * * , const char * exclude );
236
236
@@ -252,50 +252,50 @@ struct setup_revision_opt {
252
252
unsigned revarg_opt ;
253
253
};
254
254
255
- extern void init_revisions (struct rev_info * revs , const char * prefix );
256
- extern int setup_revisions (int argc , const char * * argv , struct rev_info * revs ,
257
- struct setup_revision_opt * );
258
- extern void parse_revision_opt (struct rev_info * revs , struct parse_opt_ctx_t * ctx ,
259
- const struct option * options ,
260
- const char * const usagestr []);
255
+ void init_revisions (struct rev_info * revs , const char * prefix );
256
+ int setup_revisions (int argc , const char * * argv , struct rev_info * revs ,
257
+ struct setup_revision_opt * );
258
+ void parse_revision_opt (struct rev_info * revs , struct parse_opt_ctx_t * ctx ,
259
+ const struct option * options ,
260
+ const char * const usagestr []);
261
261
#define REVARG_CANNOT_BE_FILENAME 01
262
262
#define REVARG_COMMITTISH 02
263
- extern int handle_revision_arg (const char * arg , struct rev_info * revs ,
264
- int flags , unsigned revarg_opt );
263
+ int handle_revision_arg (const char * arg , struct rev_info * revs ,
264
+ int flags , unsigned revarg_opt );
265
265
266
- extern void reset_revision_walk (void );
267
- extern int prepare_revision_walk (struct rev_info * revs );
268
- extern struct commit * get_revision (struct rev_info * revs );
269
- extern char * get_revision_mark (const struct rev_info * revs ,
270
- const struct commit * commit );
271
- extern void put_revision_mark (const struct rev_info * revs ,
272
- const struct commit * commit );
266
+ void reset_revision_walk (void );
267
+ int prepare_revision_walk (struct rev_info * revs );
268
+ struct commit * get_revision (struct rev_info * revs );
269
+ char * get_revision_mark (const struct rev_info * revs ,
270
+ const struct commit * commit );
271
+ void put_revision_mark (const struct rev_info * revs ,
272
+ const struct commit * commit );
273
273
274
- extern void mark_parents_uninteresting (struct commit * commit );
275
- extern void mark_tree_uninteresting (struct tree * tree );
274
+ void mark_parents_uninteresting (struct commit * commit );
275
+ void mark_tree_uninteresting (struct tree * tree );
276
276
277
- extern void show_object_with_name (FILE * , struct object * , const char * );
277
+ void show_object_with_name (FILE * , struct object * , const char * );
278
278
279
- extern void add_pending_object (struct rev_info * revs ,
280
- struct object * obj , const char * name );
281
- extern void add_pending_oid (struct rev_info * revs ,
282
- const char * name , const struct object_id * oid ,
283
- unsigned int flags );
279
+ void add_pending_object (struct rev_info * revs ,
280
+ struct object * obj , const char * name );
281
+ void add_pending_oid (struct rev_info * revs ,
282
+ const char * name , const struct object_id * oid ,
283
+ unsigned int flags );
284
284
285
- extern void add_head_to_pending (struct rev_info * );
286
- extern void add_reflogs_to_pending (struct rev_info * , unsigned int flags );
287
- extern void add_index_objects_to_pending (struct rev_info * , unsigned int flags );
285
+ void add_head_to_pending (struct rev_info * );
286
+ void add_reflogs_to_pending (struct rev_info * , unsigned int flags );
287
+ void add_index_objects_to_pending (struct rev_info * , unsigned int flags );
288
288
289
289
enum commit_action {
290
290
commit_ignore ,
291
291
commit_show ,
292
292
commit_error
293
293
};
294
294
295
- extern enum commit_action get_commit_action (struct rev_info * revs ,
296
- struct commit * commit );
297
- extern enum commit_action simplify_commit (struct rev_info * revs ,
298
- struct commit * commit );
295
+ enum commit_action get_commit_action (struct rev_info * revs ,
296
+ struct commit * commit );
297
+ enum commit_action simplify_commit (struct rev_info * revs ,
298
+ struct commit * commit );
299
299
300
300
enum rewrite_result {
301
301
rewrite_one_ok ,
@@ -305,8 +305,9 @@ enum rewrite_result {
305
305
306
306
typedef enum rewrite_result (* rewrite_parent_fn_t )(struct rev_info * revs , struct commit * * pp );
307
307
308
- extern int rewrite_parents (struct rev_info * revs , struct commit * commit ,
309
- rewrite_parent_fn_t rewrite_parent );
308
+ int rewrite_parents (struct rev_info * revs ,
309
+ struct commit * commit ,
310
+ rewrite_parent_fn_t rewrite_parent );
310
311
311
312
/*
312
313
* The log machinery saves the original parent list so that
@@ -317,6 +318,6 @@ extern int rewrite_parents(struct rev_info *revs, struct commit *commit,
317
318
* get_saved_parents() will transparently return commit->parents if
318
319
* history simplification is off.
319
320
*/
320
- extern struct commit_list * get_saved_parents (struct rev_info * revs , const struct commit * commit );
321
+ struct commit_list * get_saved_parents (struct rev_info * revs , const struct commit * commit );
321
322
322
323
#endif
0 commit comments