Skip to content

Commit

Permalink
wildmatch from git-compat-util
Browse files Browse the repository at this point in the history
  • Loading branch information
avar committed Mar 16, 2022
1 parent 2989b4e commit ffb226f
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions apply.c
Expand Up @@ -22,6 +22,7 @@
#include "rerere.h"
#include "apply.h"
#include "entry.h"
#include "wildmatch.h"

struct gitdiff_data {
struct strbuf *root;
Expand Down
1 change: 1 addition & 0 deletions builtin/describe.c
Expand Up @@ -17,6 +17,7 @@
#include "object-store.h"
#include "list-objects.h"
#include "commit-slab.h"
#include "wildmatch.h"

#define MAX_TAGS (FLAG_BITS - 1)

Expand Down
1 change: 1 addition & 0 deletions builtin/ls-remote.c
Expand Up @@ -4,6 +4,7 @@
#include "ref-filter.h"
#include "remote.h"
#include "refs.h"
#include "wildmatch.h"

static const char * const ls_remote_usage[] = {
N_("git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]\n"
Expand Down
1 change: 1 addition & 0 deletions builtin/name-rev.c
Expand Up @@ -9,6 +9,7 @@
#include "prio-queue.h"
#include "hash-lookup.h"
#include "commit-slab.h"
#include "wildmatch.h"

/*
* One day. See the 'name a rev shortly after epoch' test in t6120 when
Expand Down
1 change: 1 addition & 0 deletions builtin/reflog.c
Expand Up @@ -11,6 +11,7 @@
#include "revision.h"
#include "reachable.h"
#include "worktree.h"
#include "wildmatch.h"

static const char reflog_exists_usage[] =
N_("git reflog exists <ref>");
Expand Down
1 change: 1 addition & 0 deletions builtin/replace.c
Expand Up @@ -17,6 +17,7 @@
#include "object-store.h"
#include "repository.h"
#include "tag.h"
#include "wildmatch.h"

static const char * const git_replace_usage[] = {
N_("git replace [-f] <object> <replacement>"),
Expand Down
1 change: 1 addition & 0 deletions builtin/reset.c
Expand Up @@ -27,6 +27,7 @@
#include "submodule.h"
#include "submodule-config.h"
#include "dir.h"
#include "wildmatch.h"

#define REFRESH_INDEX_DELAY_WARNING_IN_MS (2 * 1000)

Expand Down
1 change: 1 addition & 0 deletions builtin/show-branch.c
Expand Up @@ -9,6 +9,7 @@
#include "dir.h"
#include "commit-slab.h"
#include "date.h"
#include "wildmatch.h"

static const char* show_branch_usage[] = {
N_("git show-branch [-a | --all] [-r | --remotes] [--topo-order | --date-order]\n"
Expand Down
1 change: 1 addition & 0 deletions config.c
Expand Up @@ -24,6 +24,7 @@
#include "color.h"
#include "refs.h"
#include "worktree.h"
#include "wildmatch.h"

struct config_source {
struct config_source *prev;
Expand Down
1 change: 1 addition & 0 deletions diffcore-order.c
Expand Up @@ -4,6 +4,7 @@
#include "cache.h"
#include "diff.h"
#include "diffcore.h"
#include "wildmatch.h"

static char **order;
static int order_cnt;
Expand Down
1 change: 1 addition & 0 deletions fmt-merge-msg.c
Expand Up @@ -10,6 +10,7 @@
#include "fmt-merge-msg.h"
#include "commit-reach.h"
#include "gpg-interface.h"
#include "wildmatch.h"

static int use_branch_desc;
static int suppress_dest_pattern_seen;
Expand Down
2 changes: 0 additions & 2 deletions git-compat-util.h
Expand Up @@ -505,8 +505,6 @@ static inline int git_has_dir_sep(const char *path)

#include "compat/bswap.h"

#include "wildmatch.h"

struct strbuf;

/* General helper functions */
Expand Down
1 change: 1 addition & 0 deletions log-tree.c
Expand Up @@ -20,6 +20,7 @@
#include "help.h"
#include "range-diff.h"
#include "strmap.h"
#include "wildmatch.h"

static struct decoration name_decoration = { "object names" };
static int decoration_loaded;
Expand Down
1 change: 1 addition & 0 deletions refs.c
Expand Up @@ -21,6 +21,7 @@
#include "repository.h"
#include "sigchain.h"
#include "date.h"
#include "wildmatch.h"

/*
* List of all available backends
Expand Down
1 change: 1 addition & 0 deletions revision.c
Expand Up @@ -32,6 +32,7 @@
#include "utf8.h"
#include "bloom.h"
#include "json-writer.h"
#include "wildmatch.h"

volatile show_early_output_fn_t show_early_output;

Expand Down
1 change: 1 addition & 0 deletions t/helper/test-wildmatch.c
@@ -1,5 +1,6 @@
#include "test-tool.h"
#include "cache.h"
#include "wildmatch.h"

int cmd__wildmatch(int argc, const char **argv)
{
Expand Down
1 change: 1 addition & 0 deletions trace2/tr2_cfg.c
Expand Up @@ -2,6 +2,7 @@
#include "config.h"
#include "trace2/tr2_cfg.h"
#include "trace2/tr2_sysenv.h"
#include "wildmatch.h"

static struct strbuf **tr2_cfg_patterns;
static int tr2_cfg_count_patterns;
Expand Down

0 comments on commit ffb226f

Please sign in to comment.