Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2023-03-19 19:27:11 +0300
committerJunio C Hamano <gitster@pobox.com>2023-03-20 21:26:47 +0300
commit49fd5511945977882ef2cd8b3c00ed25ac208512 (patch)
treee1f21f3e6b4bc3301a490404ab790637ae86689e /send-pack.c
parent73876f4861cd3d187a4682290ab75c9dccadbc56 (diff)
treewide: include parse-options.h in source files
The builtins 'ls-remote', 'pack-objects', 'receive-pack', 'reflog' and 'send-pack' use parse_options(), but their source files don't directly include 'parse-options.h'. Furthermore, the source files 'diagnose.c', 'list-objects-filter-options.c', 'remote.c' and 'send-pack.c' define option parsing callback functions, while 'revision.c' defines an option parsing helper function, and thus need access to various fields in 'struct option' and 'struct parse_opt_ctx_t', but they don't directly include 'parse-options.h' either. They all can still be built, of course, because they include one of the header files that does include 'parse-options.h' (though unnecessarily, see the next commit). Add those missing includes to these files, as our general rule is that "a C file must directly include the header files that declare the functions and the types it uses". Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/send-pack.c b/send-pack.c
index f2e19838c9..c87122d913 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -16,6 +16,7 @@
#include "gpg-interface.h"
#include "cache.h"
#include "shallow.h"
+#include "parse-options.h"
int option_parse_push_signed(const struct option *opt,
const char *arg, int unset)