Calvin Wan <calvinwan@xxxxxxxxxx> writes: > In order for wrapper.c to be built independently as part of a smaller > library, it cannot have dependencies to other Git specific > internals. remove_or_warn() creates an unnecessary dependency to > object.h in wrapper.c. Therefore move the function to entry.[ch] which > performs changes on the worktree based on the Git-specific file modes in > the index. Looking at remove_or_warn(), it's only used from entry.c and apply.c (which already includes entry.h for another reason) so moving it to entry.c looks fine.