mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
b199d7147a
There has been a push to remove extern from function declarations. Finish the job by removing all instances of "extern" for function declarations in headers using sed. This was done by running the following on my system with sed 4.2.2: $ git ls-files \*.{c,h} | grep -v ^compat/ | xargs sed -i'' -e 's/^\(\s*\)extern \([^(]*([^*]\)/\1\2/' Files under `compat/` are intentionally excluded as some are directly copied from external sources and we should avoid churning them as much as possible. Then, leftover instances of extern were found by running $ git grep -w -C3 extern \*.{c,h} and manually checking the output. No other instances were found. Note that the regex used specifically excludes function variables which _should_ be left as extern. Not the most elegant way to do it but it gets the job done. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 lines
483 B
C
17 lines
483 B
C
#ifndef GIT_EXEC_CMD_H
|
|
#define GIT_EXEC_CMD_H
|
|
|
|
struct argv_array;
|
|
|
|
void git_set_exec_path(const char *exec_path);
|
|
void git_resolve_executable_dir(const char *path);
|
|
const char *git_exec_path(void);
|
|
void setup_path(void);
|
|
const char **prepare_git_cmd(struct argv_array *out, const char **argv);
|
|
int execv_git_cmd(const char **argv); /* NULL terminated */
|
|
LAST_ARG_MUST_BE_NULL
|
|
int execl_git_cmd(const char *cmd, ...);
|
|
char *system_path(const char *path);
|
|
|
|
#endif /* GIT_EXEC_CMD_H */
|