mark private symbols static
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | http.c: make finish_active_slot() and handle_curl_result() statichttp.c http.h | +32 | 1 reply | |
| 2/10 | line-log.c: make line_log_data_init() staticline-log.c line-log.h | +1 | 0 replies | |
| 3/10 | prompt.c: remove git_getpass() nobody usesprompt.c prompt.h | +0 | 1 reply | |
| 4/10 | revision.c: make save_parents() and free_saved_parents() staticrevision.c revision.h | +59 | 0 replies | |
| 5/10 | urlmatch.c: make match_urls() staticurlmatch.c urlmatch.h | +3 | 1 reply | |
| 6/10 | remote.c: make clear_cas_option() staticremote.c remote.h | +1 | 0 replies | |
| 7/10 | shallow.c: make check_shallow_file_for_update() staticcommit.h shallow.c | +1 | 0 replies | |
| 8/10 | pack-bitmap.c: make pack_bitmap_filename() staticpack-bitmap.c pack-bitmap.h | +14 | 1 reply | |
| 9/10 | read-cache.c: make fill/match_stat_data() staticcache.h read-cache.c | +12 | 0 replies | |
| 10/10 | commit: show "Author:" hint when the ident is not given explicitlybuiltin/ | +4 | 1 reply |
Reviews trailers per patch
None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Stefan Beller |
|---|---|
| Series | R-b |
| 1/10 | |
| 2/10 | |
| 3/10 | |
| 4/10 | |
| 5/10 | |
| 6/10 | |
| 7/10 | |
| 8/10 | |
| 9/10 | |
| 10/10 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/10] mark private symbols static
Here are a handful of patches to make symbols that are only used within a .c file as static. This is not the kind of changes we would want to do in the pre-release freeze period, and it is just for reference. I may later come back to them after 2.3 final is tagged.
Note that I did not blindly make everything that _could_ be made static; the ones I deliberately left untouched are:
* config.c: this has a lot of git_configset_*() API functions that were developed but not yet used (as part of 3/4-way done GSoc project that did not fully convert users of the config subsystem to these new style functions); making them static merely because they are not yet used goes backwards.
* ewah/* and xdiff/*: I consider these borrowed code, which we would want to avoid touching in the same series as our own code.
* graph.c: graph_next_line() and graph_set_column_colors() are not called externally, but I suspect that they are API functions waiting for a new caller to appear.
* line-log.c: range_set_append() is not called externally, but this is only because a caller calls range_set_append_unsafe(), its sibling, which may want to be cleaned up.
* refs.c: rollback_packed_refs() is not called externally, but the codebase around refs API is in flux and I did not want to add to the code churn.
* strbuf.c: xstrvfmt() is not called externally, but this is a reasonable API function to keep; its friend xstrfmt() is used by many places.
* string-list.c: print_string_list() may want to go, but it may be useful for debugging, so I kept it in.
* wrapper.c: rmdir_or_warn() is not used externally, but this is a reasonable API function as its friends like unlink_or_warn() that are used.
The last patch in the series is very questionable. Instead of hiding unused author_ident_sufficiently_given() function (and possibly removing it), it adds external callers to justify its existence ;-)
Junio C Hamano (10):
http.c: make finish_active_slot() and handle_curl_result() static line-log.c: make line_log_data_init() static
prompt.c: remove git_getpass() nobody uses
revision.c: make save_parents() and free_saved_parents() static urlmatch.c: make match_urls() static
remote.c: make clear_cas_option() static
shallow.c: make check_shallow_file_for_update() static pack-bitmap.c: make pack_bitmap_filename() static read-cache.c: make fill/match_stat_data() static
commit: show "Author:" hint when the ident is not given explicitly
builtin/commit.c | 6 ++-- cache.h | 14 -------- commit.h | 1 - http.c | 64 ++++++++++++++++----------------- http.h | 2 -- line-log.c | 2 +- line-log.h | 2 -- pack-bitmap.c | 28 +++++++-------- pack-bitmap.h | 1 - prompt.c | 5 --- prompt.h | 1 - read-cache.c | 14 ++++++-- remote.c | 2 +- remote.h | 1 - revision.c | 106 +++++++++++++++++++++++++++++-------------------------- revision.h | 12 +++---- shallow.c | 2 +- urlmatch.c | 6 ++-- urlmatch.h | 1 - 19 files changed, 127 insertions(+), 143 deletions(-)
Signature · 1 line
2.3.0-rc0-134-g109a908