]> git.99rst.org Git - git.git/commit
wrapper: reduce scope of remove_or_warn()
authorCalvin Wan <redacted>
Fri, 29 Sep 2023 21:20:49 +0000 (14:20 -0700)
committerJunio C Hamano <redacted>
Fri, 29 Sep 2023 22:14:56 +0000 (15:14 -0700)
commitafd2a1d5f1fc371fe1fda0ed07e0f2f27100fbab
treeb13a88a44ba897c7f087a01be7743de3a310d2b5
parentd88e8106e892109f4f4b13312dd026d0a7fcfeec
wrapper: reduce scope of remove_or_warn()

remove_or_warn() is only used by entry.c and apply.c, but it is
currently declared and defined in wrapper.{h,c}, so it has a scope much
greater than it needs. This needlessly large scope also causes wrapper.c
to need to include object.h, when this file is largely unconcerned with
Git objects.

Move remove_or_warn() to entry.{h,c}. The file apply.c still has access
to it, since it already includes entry.h for another reason.

Signed-off-by: Calvin Wan <redacted>
Signed-off-by: Jonathan Tan <redacted>
Signed-off-by: Junio C Hamano <redacted>
entry.c
entry.h
wrapper.c
wrapper.h
git clone https://git.99rst.org/PROJECT