Git development
 help / color / mirror / Atom feed
* [PATCH 0/4] mark symbols that are unnecessarily public static
@ 2026-10-30 17:39 Junio C Hamano
  2026-10-30 17:39 ` [PATCH 1/4] ident: remove unused author_ident_sufficiently_given() Junio C Hamano
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Junio C Hamano @ 2026-10-30 17:39 UTC (permalink / raw)
  To: git

Over the years, refactoring various subsystems, adding new callers,
and rewriting them from scratch, made some symbols that started as
static into global, and some other symbols that started as global,
no longer need to be visible outside a file that use them.  Here is
a small patch series that turns them back into file-scope static.

Honestly, I suspect that [3/4] was probably better with a forward
declaration in the preview I sent earlier, but in the longer term,
readers would not care if this conversion ended up in a large code
movement, as they do not have to even know it.

 1/4: ident: remove unused author_ident_sufficiently_given()
 2/4: add -i: hide init/clear_add_i_state() functions
 3/4: read-cache: hide refresh_cache_entry()
 4/4: unpack-trees: hide verify_uptodate()

 add-interactive.c |  11 +-
 add-interactive.h |   9 --
 ident.c           |   5 -
 ident.h           |   1 -
 read-cache-ll.h   |   2 -
 read-cache.c      | 258 +++++++++++++++++++++++-----------------------
 unpack-trees.c    |   4 +-
 unpack-trees.h    |   3 -
 8 files changed, 139 insertions(+), 154 deletions(-)

-- 
2.56.0-486-gd49ba3b80a


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-30 18:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30 17:39 [PATCH 0/4] mark symbols that are unnecessarily public static Junio C Hamano
2026-10-30 17:39 ` [PATCH 1/4] ident: remove unused author_ident_sufficiently_given() Junio C Hamano
2026-10-30 18:22   ` Jeff King
2026-10-30 17:39 ` [PATCH 2/4] add -i: hide init/clear_add_i_state() functions Junio C Hamano
2026-10-30 17:39 ` [PATCH 3/4] read-cache: hide refresh_cache_entry() Junio C Hamano
2026-10-30 18:25   ` Jeff King
2026-10-30 17:39 ` [PATCH 4/4] unpack-trees: hide verify_uptodate() Junio C Hamano
2026-10-30 18:26 ` [PATCH 0/4] mark symbols that are unnecessarily public static Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox