1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-04-27 01:15:10 +02:00

Merge branch 'sg/parse-options-h-users'

Code clean-up to include and/or uninclude parse-options.h file as
needed.

* sg/parse-options-h-users:
  treewide: remove unnecessary inclusions of parse-options.h from headers
  treewide: include parse-options.h in source files
This commit is contained in:
Junio C Hamano 2023-03-30 13:47:11 -07:00
commit dbb4102f7b
15 changed files with 18 additions and 5 deletions

View File

@ -5,6 +5,7 @@
#include "ref-filter.h"
#include "remote.h"
#include "refs.h"
#include "parse-options.h"
static const char * const ls_remote_usage[] = {
N_("git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]\n"

View File

@ -39,6 +39,7 @@
#include "shallow.h"
#include "promisor-remote.h"
#include "pack-mtimes.h"
#include "parse-options.h"
/*
* Objects we are going to pack are collected in the `to_pack` structure.

View File

@ -31,6 +31,7 @@
#include "commit-reach.h"
#include "worktree.h"
#include "shallow.h"
#include "parse-options.h"
static const char * const receive_pack_usage[] = {
N_("git receive-pack <git-dir>"),

View File

@ -4,6 +4,7 @@
#include "reachable.h"
#include "worktree.h"
#include "reflog.h"
#include "parse-options.h"
#define BUILTIN_REFLOG_SHOW_USAGE \
N_("git reflog [show] [<log-options>] [<ref>]")

View File

@ -16,6 +16,7 @@
#include "gpg-interface.h"
#include "gettext.h"
#include "protocol.h"
#include "parse-options.h"
static const char * const send_pack_usage[] = {
N_("git send-pack [--mirror] [--dry-run] [--force]\n"

View File

@ -8,6 +8,7 @@
#include "strvec.h"
#include "object-store.h"
#include "packfile.h"
#include "parse-options.h"
struct archive_dir {
const char *path;

View File

@ -2,7 +2,8 @@
#define DIAGNOSE_H
#include "strbuf.h"
#include "parse-options.h"
struct option;
enum diagnose_mode {
DIAGNOSE_NONE,

View File

@ -11,6 +11,7 @@
#include "promisor-remote.h"
#include "trace.h"
#include "url.h"
#include "parse-options.h"
static int parse_combine_filter(
struct list_objects_filter_options *filter_options,

View File

@ -2,10 +2,11 @@
#define LIST_OBJECTS_FILTER_OPTIONS_H
#include "object.h"
#include "parse-options.h"
#include "string-list.h"
#include "strbuf.h"
struct option;
/*
* The list of defined filters for list-objects.
*/

View File

@ -4,7 +4,6 @@
#include "oid-array.h"
#include "refs.h"
#include "commit.h"
#include "parse-options.h"
/* Quoting styles */
#define QUOTE_NONE 0
@ -24,6 +23,7 @@
struct atom_value;
struct ref_sorting;
struct option;
enum ref_sorting_order {
REF_SORTING_REVERSE = 1<<0,

View File

@ -17,6 +17,7 @@
#include "commit-reach.h"
#include "advice.h"
#include "connect.h"
#include "parse-options.h"
enum map_direction { FROM_SRC, FROM_DST };

View File

@ -1,10 +1,10 @@
#ifndef REMOTE_H
#define REMOTE_H
#include "parse-options.h"
#include "hashmap.h"
#include "refspec.h"
struct option;
struct transport_ls_refs_options;
/**

View File

@ -37,6 +37,7 @@
#include "json-writer.h"
#include "list-objects-filter-options.h"
#include "resolve-undo.h"
#include "parse-options.h"
volatile show_early_output_fn_t show_early_output;

View File

@ -2,7 +2,6 @@
#define REVISION_H
#include "commit.h"
#include "parse-options.h"
#include "grep.h"
#include "notes.h"
#include "pretty.h"
@ -62,6 +61,8 @@ struct string_list;
struct saved_parents;
struct bloom_key;
struct bloom_filter_settings;
struct option;
struct parse_opt_ctx_t;
define_shared_commit_slab(revision_sources, char *);
struct rev_cmdline_info {

View File

@ -17,6 +17,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)