treewide: remove unnecessary cache.h inclusion
Several files were including cache.h solely to get other headers, such as trace.h and trace2.h. Since the last few commits have modified files to make these dependencies more explicit, the inclusion of cache.h is no longer needed in several cases. Remove it. Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
5bc07225e5
commit
5579f44d2f
@ -1,4 +1,4 @@
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "gettext.h"
|
||||
#include "simple-ipc.h"
|
||||
#include "strbuf.h"
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "git-compat-util.h"
|
||||
#include "cache.h"
|
||||
#include "config.h"
|
||||
#include "environment.h"
|
||||
#include "gettext.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "alloc.h"
|
||||
#include "repository.h"
|
||||
#include "config.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "environment.h"
|
||||
#include "gettext.h"
|
||||
#include "hex.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "gettext.h"
|
||||
#include "hex.h"
|
||||
#include "object-store.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "config.h"
|
||||
#include "environment.h"
|
||||
#include "protocol.h"
|
||||
|
2
scalar.c
2
scalar.c
@ -2,7 +2,7 @@
|
||||
* The Scalar command-line interface.
|
||||
*/
|
||||
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "abspath.h"
|
||||
#include "gettext.h"
|
||||
#include "parse-options.h"
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "date.h"
|
||||
#include "trace.h"
|
||||
|
||||
|
2
trace.c
2
trace.c
@ -21,7 +21,7 @@
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "abspath.h"
|
||||
#include "environment.h"
|
||||
#include "quote.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "config.h"
|
||||
#include "environment.h"
|
||||
#include "gettext.h"
|
||||
|
Loading…
Reference in New Issue
Block a user