]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ar/submodule-helper-include-cleanup'
authorJunio C Hamano <gitster@pobox.com>
Sat, 17 Jul 2021 00:42:51 +0000 (17:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Jul 2021 00:42:51 +0000 (17:42 -0700)
Code clean-up.

* ar/submodule-helper-include-cleanup:
  submodule--helper: remove redundant include

1  2 
builtin/submodule--helper.c

index ae6174ab05bd838b72018353961cc34eba41e631,9f7daf5604aecf48e9d35de47fb0af83955b5715..f73963ad67da3304cac6236893988c74f18124b1
  #include "run-command.h"
  #include "remote.h"
  #include "refs.h"
 +#include "refspec.h"
  #include "connect.h"
- #include "dir.h"
 +#include "revision.h"
 +#include "diffcore.h"
 +#include "diff.h"
 +#include "object-store.h"
 +#include "advice.h"
 +
 +#define OPT_QUIET (1 << 0)
 +#define OPT_CACHED (1 << 1)
 +#define OPT_RECURSIVE (1 << 2)
 +#define OPT_FORCE (1 << 3)
 +
 +typedef void (*each_submodule_fn)(const struct cache_entry *list_item,
 +                                void *cb_data);
  
  static char *get_default_remote(void)
  {