revision.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:
parent
c2ec417544
commit
d16ec9cd0f
69
revision.h
69
revision.h
@ -230,7 +230,7 @@ struct rev_info {
|
|||||||
struct revision_sources *sources;
|
struct revision_sources *sources;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int ref_excluded(struct string_list *, const char *path);
|
int ref_excluded(struct string_list *, const char *path);
|
||||||
void clear_ref_exclusion(struct string_list **);
|
void clear_ref_exclusion(struct string_list **);
|
||||||
void add_ref_exclusion(struct string_list **, const char *exclude);
|
void add_ref_exclusion(struct string_list **, const char *exclude);
|
||||||
|
|
||||||
@ -252,39 +252,39 @@ struct setup_revision_opt {
|
|||||||
unsigned revarg_opt;
|
unsigned revarg_opt;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void init_revisions(struct rev_info *revs, const char *prefix);
|
void init_revisions(struct rev_info *revs, const char *prefix);
|
||||||
extern int setup_revisions(int argc, const char **argv, struct rev_info *revs,
|
int setup_revisions(int argc, const char **argv, struct rev_info *revs,
|
||||||
struct setup_revision_opt *);
|
struct setup_revision_opt *);
|
||||||
extern void parse_revision_opt(struct rev_info *revs, struct parse_opt_ctx_t *ctx,
|
void parse_revision_opt(struct rev_info *revs, struct parse_opt_ctx_t *ctx,
|
||||||
const struct option *options,
|
const struct option *options,
|
||||||
const char * const usagestr[]);
|
const char * const usagestr[]);
|
||||||
#define REVARG_CANNOT_BE_FILENAME 01
|
#define REVARG_CANNOT_BE_FILENAME 01
|
||||||
#define REVARG_COMMITTISH 02
|
#define REVARG_COMMITTISH 02
|
||||||
extern int handle_revision_arg(const char *arg, struct rev_info *revs,
|
int handle_revision_arg(const char *arg, struct rev_info *revs,
|
||||||
int flags, unsigned revarg_opt);
|
int flags, unsigned revarg_opt);
|
||||||
|
|
||||||
extern void reset_revision_walk(void);
|
void reset_revision_walk(void);
|
||||||
extern int prepare_revision_walk(struct rev_info *revs);
|
int prepare_revision_walk(struct rev_info *revs);
|
||||||
extern struct commit *get_revision(struct rev_info *revs);
|
struct commit *get_revision(struct rev_info *revs);
|
||||||
extern char *get_revision_mark(const struct rev_info *revs,
|
char *get_revision_mark(const struct rev_info *revs,
|
||||||
const struct commit *commit);
|
const struct commit *commit);
|
||||||
extern void put_revision_mark(const struct rev_info *revs,
|
void put_revision_mark(const struct rev_info *revs,
|
||||||
const struct commit *commit);
|
const struct commit *commit);
|
||||||
|
|
||||||
extern void mark_parents_uninteresting(struct commit *commit);
|
void mark_parents_uninteresting(struct commit *commit);
|
||||||
extern void mark_tree_uninteresting(struct tree *tree);
|
void mark_tree_uninteresting(struct tree *tree);
|
||||||
|
|
||||||
extern void show_object_with_name(FILE *, struct object *, const char *);
|
void show_object_with_name(FILE *, struct object *, const char *);
|
||||||
|
|
||||||
extern void add_pending_object(struct rev_info *revs,
|
void add_pending_object(struct rev_info *revs,
|
||||||
struct object *obj, const char *name);
|
struct object *obj, const char *name);
|
||||||
extern void add_pending_oid(struct rev_info *revs,
|
void add_pending_oid(struct rev_info *revs,
|
||||||
const char *name, const struct object_id *oid,
|
const char *name, const struct object_id *oid,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
extern void add_head_to_pending(struct rev_info *);
|
void add_head_to_pending(struct rev_info *);
|
||||||
extern void add_reflogs_to_pending(struct rev_info *, unsigned int flags);
|
void add_reflogs_to_pending(struct rev_info *, unsigned int flags);
|
||||||
extern void add_index_objects_to_pending(struct rev_info *, unsigned int flags);
|
void add_index_objects_to_pending(struct rev_info *, unsigned int flags);
|
||||||
|
|
||||||
enum commit_action {
|
enum commit_action {
|
||||||
commit_ignore,
|
commit_ignore,
|
||||||
@ -292,10 +292,10 @@ enum commit_action {
|
|||||||
commit_error
|
commit_error
|
||||||
};
|
};
|
||||||
|
|
||||||
extern enum commit_action get_commit_action(struct rev_info *revs,
|
enum commit_action get_commit_action(struct rev_info *revs,
|
||||||
struct commit *commit);
|
struct commit *commit);
|
||||||
extern enum commit_action simplify_commit(struct rev_info *revs,
|
enum commit_action simplify_commit(struct rev_info *revs,
|
||||||
struct commit *commit);
|
struct commit *commit);
|
||||||
|
|
||||||
enum rewrite_result {
|
enum rewrite_result {
|
||||||
rewrite_one_ok,
|
rewrite_one_ok,
|
||||||
@ -305,8 +305,9 @@ enum rewrite_result {
|
|||||||
|
|
||||||
typedef enum rewrite_result (*rewrite_parent_fn_t)(struct rev_info *revs, struct commit **pp);
|
typedef enum rewrite_result (*rewrite_parent_fn_t)(struct rev_info *revs, struct commit **pp);
|
||||||
|
|
||||||
extern int rewrite_parents(struct rev_info *revs, struct commit *commit,
|
int rewrite_parents(struct rev_info *revs,
|
||||||
rewrite_parent_fn_t rewrite_parent);
|
struct commit *commit,
|
||||||
|
rewrite_parent_fn_t rewrite_parent);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The log machinery saves the original parent list so that
|
* 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,
|
|||||||
* get_saved_parents() will transparently return commit->parents if
|
* get_saved_parents() will transparently return commit->parents if
|
||||||
* history simplification is off.
|
* history simplification is off.
|
||||||
*/
|
*/
|
||||||
extern struct commit_list *get_saved_parents(struct rev_info *revs, const struct commit *commit);
|
struct commit_list *get_saved_parents(struct rev_info *revs, const struct commit *commit);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user