]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
entry: extract a header file for entry.c functions
authorMatheus Tavares <matheus.bernardino@usp.br>
Tue, 23 Mar 2021 14:19:32 +0000 (11:19 -0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Mar 2021 17:34:05 +0000 (10:34 -0700)
commitd052cc038270d1231a245d7ac6d60559123464d3
tree958f3519bf0a0c57ae7cabcf4601f7aba19725d6
parentf59d15bb420b649a6ee3163a3418aac6b813d331
entry: extract a header file for entry.c functions

The declarations of entry.c's public functions and structures currently
reside in cache.h. Although not many, they contribute to the size of
cache.h and, when changed, cause the unnecessary recompilation of
modules that don't really use these functions. So let's move them to a
new entry.h header. While at it let's also move a comment related to
checkout_entry() from entry.c to entry.h as it's more useful to describe
the function there.

Original-patch-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
builtin/checkout-index.c
builtin/checkout.c
builtin/difftool.c
builtin/stash.c
cache.h
entry.c
entry.h [new file with mode: 0644]
unpack-trees.c