Skip to content

Commit ad6dad0

Browse files
Denton-Lgitster
authored andcommitted
*.[ch]: manually align parameter lists
In previous patches, extern was mechanically removed from function declarations without care to formatting, causing parameter lists to be misaligned. Manually format changed sections such that the parameter lists should be realigned. Viewing this patch with 'git diff -w' should produce no output. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b199d71 commit ad6dad0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+202
-202
lines changed

archive.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ struct archiver_args {
2424
/* main api */
2525

2626
int write_archive(int argc, const char **argv, const char *prefix,
27-
struct repository *repo,
28-
const char *name_hint, int remote);
27+
struct repository *repo,
28+
const char *name_hint, int remote);
2929

3030
const char *archive_format_from_filename(const char *filename);
3131

@@ -52,8 +52,8 @@ typedef int (*write_archive_entry_fn_t)(struct archiver_args *args,
5252

5353
int write_archive_entries(struct archiver_args *args, write_archive_entry_fn_t write_entry);
5454
void *object_file_to_archive(const struct archiver_args *args,
55-
const char *path, const struct object_id *oid,
56-
unsigned int mode, enum object_type *type,
57-
unsigned long *sizep);
55+
const char *path, const struct object_id *oid,
56+
unsigned int mode, enum object_type *type,
57+
unsigned long *sizep);
5858

5959
#endif /* ARCHIVE_H */

bisect.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ struct repository;
1212
* best commit, as chosen by `find_all`.
1313
*/
1414
void find_bisection(struct commit_list **list, int *reaches, int *all,
15-
int find_all);
15+
int find_all);
1616

1717
struct commit_list *filter_skipped(struct commit_list *list,
18-
struct commit_list **tried,
19-
int show_all,
20-
int *count,
21-
int *skipped_first);
18+
struct commit_list **tried,
19+
int show_all,
20+
int *count,
21+
int *skipped_first);
2222

2323
#define BISECT_SHOW_ALL (1<<0)
2424
#define REV_LIST_QUIET (1<<1)
@@ -32,8 +32,8 @@ struct rev_list_info {
3232
};
3333

3434
int bisect_next_all(struct repository *r,
35-
const char *prefix,
36-
int no_checkout);
35+
const char *prefix,
36+
int no_checkout);
3737

3838
int estimate_bisect_steps(int all);
3939

branch.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ void die_if_checked_out(const char *branch, int ignore_current_worktree);
9292
* otherwise.
9393
*/
9494
int replace_each_worktree_head_symref(const char *oldref, const char *newref,
95-
const char *logmsg);
95+
const char *logmsg);
9696

9797
#endif

builtin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct fmt_merge_msg_opts {
111111
};
112112

113113
int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
114-
struct fmt_merge_msg_opts *);
114+
struct fmt_merge_msg_opts *);
115115

116116
/**
117117
* If a built-in has DELAY_PAGER_CONFIG set, the built-in should call this early

bulk-checkin.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include "cache.h"
88

99
int index_bulk_checkin(struct object_id *oid,
10-
int fd, size_t size, enum object_type type,
11-
const char *path, unsigned flags);
10+
int fd, size_t size, enum object_type type,
11+
const char *path, unsigned flags);
1212

1313
void plug_bulk_checkin(void);
1414
void unplug_bulk_checkin(void);

cache.h

+21-21
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ void setup_work_tree(void);
616616
* either 0 upon success and non-zero if no repository was found.
617617
*/
618618
int discover_git_directory(struct strbuf *commondir,
619-
struct strbuf *gitdir);
619+
struct strbuf *gitdir);
620620
const char *setup_git_directory_gently(int *);
621621
const char *setup_git_directory(void);
622622
char *prefix_path(const char *prefix, int len, const char *path);
@@ -636,16 +636,16 @@ char *prefix_filename(const char *prefix, const char *path);
636636

637637
int check_filename(const char *prefix, const char *name);
638638
void verify_filename(const char *prefix,
639-
const char *name,
640-
int diagnose_misspelt_rev);
639+
const char *name,
640+
int diagnose_misspelt_rev);
641641
void verify_non_filename(const char *prefix, const char *name);
642642
int path_inside_repo(const char *prefix, const char *path);
643643

644644
#define INIT_DB_QUIET 0x0001
645645
#define INIT_DB_EXIST_OK 0x0002
646646

647647
int init_db(const char *git_dir, const char *real_git_dir,
648-
const char *template_dir, unsigned int flags);
648+
const char *template_dir, unsigned int flags);
649649

650650
void sanitize_stdfds(void);
651651
int daemonize(void);
@@ -673,12 +673,12 @@ int daemonize(void);
673673
/* Initialize and use the cache information */
674674
struct lock_file;
675675
void preload_index(struct index_state *index,
676-
const struct pathspec *pathspec,
677-
unsigned int refresh_flags);
676+
const struct pathspec *pathspec,
677+
unsigned int refresh_flags);
678678
int do_read_index(struct index_state *istate, const char *path,
679-
int must_exist); /* for testting only! */
679+
int must_exist); /* for testting only! */
680680
int read_index_from(struct index_state *, const char *path,
681-
const char *gitdir);
681+
const char *gitdir);
682682
int is_index_unborn(struct index_state *);
683683

684684
/* For use with `write_locked_index()`. */
@@ -718,8 +718,8 @@ int unmerged_index(const struct index_state *);
718718
* to it.
719719
*/
720720
int repo_index_has_changes(struct repository *repo,
721-
struct tree *tree,
722-
struct strbuf *sb);
721+
struct tree *tree,
722+
struct strbuf *sb);
723723

724724
int verify_path(const char *path, unsigned mode);
725725
int strcmp_offset(const char *s1, const char *s2, size_t *first_change);
@@ -797,7 +797,7 @@ void *read_blob_data_from_index(const struct index_state *, const char *, unsign
797797
/* don't refresh_fsmonitor state or do stat comparison even if CE_FSMONITOR_VALID is true */
798798
#define CE_MATCH_IGNORE_FSMONITOR 0X20
799799
int is_racy_timestamp(const struct index_state *istate,
800-
const struct cache_entry *ce);
800+
const struct cache_entry *ce);
801801
int ie_match_stat(struct index_state *, const struct cache_entry *, struct stat *, unsigned int);
802802
int ie_modified(struct index_state *, const struct cache_entry *, struct stat *, unsigned int);
803803

@@ -821,7 +821,7 @@ void fill_stat_data(struct stat_data *sd, struct stat *st);
821821
*/
822822
int match_stat_data(const struct stat_data *sd, struct stat *st);
823823
int match_stat_data_racy(const struct index_state *istate,
824-
const struct stat_data *sd, struct stat *st);
824+
const struct stat_data *sd, struct stat *st);
825825

826826
void fill_stat_cache_info(struct cache_entry *ce, struct stat *st);
827827

@@ -1386,8 +1386,8 @@ int get_oid_treeish(const char *str, struct object_id *oid);
13861386
int get_oid_blob(const char *str, struct object_id *oid);
13871387
void maybe_die_on_misspelt_object_name(const char *name, const char *prefix);
13881388
enum get_oid_result get_oid_with_context(struct repository *repo, const char *str,
1389-
unsigned flags, struct object_id *oid,
1390-
struct object_context *oc);
1389+
unsigned flags, struct object_id *oid,
1390+
struct object_context *oc);
13911391

13921392
typedef int each_abbrev_fn(const struct object_id *oid, void *);
13931393
int for_each_abbrev(const char *prefix, each_abbrev_fn, void *);
@@ -1469,7 +1469,7 @@ int parse_oid_hex(const char *hex, struct object_id *oid, const char **end);
14691469
#define INTERPRET_BRANCH_REMOTE (1<<1)
14701470
#define INTERPRET_BRANCH_HEAD (1<<2)
14711471
int interpret_branch_name(const char *str, int len, struct strbuf *,
1472-
unsigned allowed);
1472+
unsigned allowed);
14731473
int get_oid_mb(const char *str, struct object_id *oid);
14741474

14751475
int validate_headref(const char *ref);
@@ -1480,12 +1480,12 @@ int name_compare(const char *name1, size_t len1, const char *name2, size_t len2)
14801480
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
14811481

14821482
void *read_object_with_reference(const struct object_id *oid,
1483-
const char *required_type,
1484-
unsigned long *size,
1485-
struct object_id *oid_ret);
1483+
const char *required_type,
1484+
unsigned long *size,
1485+
struct object_id *oid_ret);
14861486

14871487
struct object *peel_to_type(const char *name, int namelen,
1488-
struct object *o, enum object_type);
1488+
struct object *o, enum object_type);
14891489

14901490
enum date_mode_type {
14911491
DATE_NORMAL = 0,
@@ -1542,8 +1542,8 @@ enum want_ident {
15421542
const char *git_author_info(int);
15431543
const char *git_committer_info(int);
15441544
const char *fmt_ident(const char *name, const char *email,
1545-
enum want_ident whose_ident,
1546-
const char *date_str, int);
1545+
enum want_ident whose_ident,
1546+
const char *date_str, int);
15471547
const char *fmt_name(enum want_ident);
15481548
const char *ident_default_name(void);
15491549
const char *ident_default_email(void);

checkout.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* exists, NULL otherwise.
1010
*/
1111
const char *unique_tracking_name(const char *name,
12-
struct object_id *oid,
13-
int *dwim_remotes_matched);
12+
struct object_id *oid,
13+
int *dwim_remotes_matched);
1414

1515
#endif /* CHECKOUT_H */

column.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct column_options {
2929
struct option;
3030
int parseopt_column_callback(const struct option *, const char *, int);
3131
int git_column_config(const char *var, const char *value,
32-
const char *command, unsigned int *colopts);
32+
const char *command, unsigned int *colopts);
3333
int finalize_colopts(unsigned int *colopts, int stdout_is_tty);
3434
static inline int column_active(unsigned int colopts)
3535
{
@@ -38,7 +38,7 @@ static inline int column_active(unsigned int colopts)
3838

3939
struct string_list;
4040
void print_columns(const struct string_list *list, unsigned int colopts,
41-
const struct column_options *opts);
41+
const struct column_options *opts);
4242

4343
int run_column_filter(int colopts, const struct column_options *);
4444
int stop_column_filter(void);

commit.h

+22-22
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
179179

180180
int has_non_ascii(const char *text);
181181
const char *logmsg_reencode(const struct commit *commit,
182-
char **commit_encoding,
183-
const char *output_encoding);
182+
char **commit_encoding,
183+
const char *output_encoding);
184184
const char *repo_logmsg_reencode(struct repository *r,
185185
const struct commit *commit,
186186
char **commit_encoding,
@@ -245,15 +245,15 @@ int unregister_shallow(const struct object_id *oid);
245245
int for_each_commit_graft(each_commit_graft_fn, void *);
246246
int is_repository_shallow(struct repository *r);
247247
struct commit_list *get_shallow_commits(struct object_array *heads,
248-
int depth, int shallow_flag, int not_shallow_flag);
248+
int depth, int shallow_flag, int not_shallow_flag);
249249
struct commit_list *get_shallow_commits_by_rev_list(
250250
int ac, const char **av, int shallow_flag, int not_shallow_flag);
251251
void set_alternate_shallow_file(struct repository *r, const char *path, int override);
252252
int write_shallow_commits(struct strbuf *out, int use_pack_protocol,
253-
const struct oid_array *extra);
253+
const struct oid_array *extra);
254254
void setup_alternate_shallow(struct lock_file *shallow_lock,
255-
const char **alternate_shallow_file,
256-
const struct oid_array *extra);
255+
const char **alternate_shallow_file,
256+
const struct oid_array *extra);
257257
const char *setup_temporary_shallow(const struct oid_array *extra);
258258
void advertise_shallow_grafts(int);
259259

@@ -276,8 +276,8 @@ void prepare_shallow_info(struct shallow_info *, struct oid_array *);
276276
void clear_shallow_info(struct shallow_info *);
277277
void remove_nonexistent_theirs_shallow(struct shallow_info *);
278278
void assign_shallow_commits_to_refs(struct shallow_info *info,
279-
uint32_t **used,
280-
int *ref_status);
279+
uint32_t **used,
280+
int *ref_status);
281281
int delayed_reachability_test(struct shallow_info *si, int c);
282282
#define PRUNE_SHOW_ONLY 1
283283
#define PRUNE_QUICK 2
@@ -286,7 +286,7 @@ extern struct trace_key trace_shallow;
286286

287287
int interactive_add(int argc, const char **argv, const char *prefix, int patch);
288288
int run_add_interactive(const char *revision, const char *patch_mode,
289-
const struct pathspec *pathspec);
289+
const struct pathspec *pathspec);
290290

291291
struct commit_extra_header {
292292
struct commit_extra_header *next;
@@ -296,19 +296,19 @@ struct commit_extra_header {
296296
};
297297

298298
void append_merge_tag_headers(struct commit_list *parents,
299-
struct commit_extra_header ***tail);
299+
struct commit_extra_header ***tail);
300300

301301
int commit_tree(const char *msg, size_t msg_len,
302-
const struct object_id *tree,
303-
struct commit_list *parents, struct object_id *ret,
304-
const char *author, const char *sign_commit);
302+
const struct object_id *tree,
303+
struct commit_list *parents, struct object_id *ret,
304+
const char *author, const char *sign_commit);
305305

306306
int commit_tree_extended(const char *msg, size_t msg_len,
307-
const struct object_id *tree,
308-
struct commit_list *parents,
309-
struct object_id *ret, const char *author,
310-
const char *sign_commit,
311-
struct commit_extra_header *);
307+
const struct object_id *tree,
308+
struct commit_list *parents,
309+
struct object_id *ret, const char *author,
310+
const char *sign_commit,
311+
struct commit_extra_header *);
312312

313313
struct commit_extra_header *read_commit_extra_headers(struct commit *, const char **);
314314

@@ -323,13 +323,13 @@ void free_commit_extra_headers(struct commit_extra_header *extra);
323323
* responsibility to parse further in this case!
324324
*/
325325
const char *find_commit_header(const char *msg, const char *key,
326-
size_t *out_len);
326+
size_t *out_len);
327327

328328
/* Find the end of the log message, the right place for a new trailer. */
329329
size_t ignore_non_trailer(const char *buf, size_t len);
330330

331331
typedef int (*each_mergetag_fn)(struct commit *commit, struct commit_extra_header *extra,
332-
void *cb_data);
332+
void *cb_data);
333333

334334
int for_each_mergetag(each_mergetag_fn fn, struct commit *commit, void *data);
335335

@@ -339,7 +339,7 @@ struct merge_remote_desc {
339339
};
340340
struct merge_remote_desc *merge_remote_util(struct commit *);
341341
void set_merge_remote_desc(struct commit *commit,
342-
const char *name, struct object *obj);
342+
const char *name, struct object *obj);
343343

344344
/*
345345
* Given "name" from the command line to merge, find the commit object
@@ -349,7 +349,7 @@ void set_merge_remote_desc(struct commit *commit,
349349
struct commit *get_merge_parent(const char *name);
350350

351351
int parse_signed_commit(const struct commit *commit,
352-
struct strbuf *message, struct strbuf *signature);
352+
struct strbuf *message, struct strbuf *signature);
353353
int remove_signature(struct strbuf *buf);
354354

355355
/*

0 commit comments

Comments
 (0)