#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "abspath.h"
#include "parse.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "pathspec.h"
#include "attr.h"
#include "read-cache.h"
#include "repository.h"
#include "setup.h"
#include "strvec.h"
#include "symlinks.h"
#include "quote.h"
#include "wildmatch.h"
void add_pathspec_matches_against_index(const struct pathspec *pathspec,
struct index_state *istate,
char *seen,
enum ps_skip_worktree_action sw_action)
{ … }
char *find_pathspecs_matching_against_index(const struct pathspec *pathspec,
struct index_state *istate,
enum ps_skip_worktree_action sw_action)
{ … }
char *find_pathspecs_matching_skip_worktree(const struct pathspec *pathspec)
{ … }
static struct pathspec_magic { … } pathspec_magic[] = …;
static void prefix_magic(struct strbuf *sb, int prefixlen,
unsigned magic, const char *element)
{ … }
static size_t strcspn_escaped(const char *s, const char *stop)
{ … }
static inline int invalid_value_char(const char ch)
{ … }
static char *attr_value_unescape(const char *value)
{ … }
static void parse_pathspec_attr_match(struct pathspec_item *item, const char *value)
{ … }
static inline int get_literal_global(void)
{ … }
static inline int get_glob_global(void)
{ … }
static inline int get_noglob_global(void)
{ … }
static inline int get_icase_global(void)
{ … }
static int get_global_magic(int element_magic)
{ … }
static const char *parse_long_magic(unsigned *magic, int *prefix_len,
struct pathspec_item *item,
const char *elem)
{ … }
static const char *parse_short_magic(unsigned *magic, const char *elem)
{ … }
static const char *parse_element_magic(unsigned *magic, int *prefix_len,
struct pathspec_item *item,
const char *elem)
{ … }
static void init_pathspec_item(struct pathspec_item *item, unsigned flags,
const char *prefix, int prefixlen,
const char *elt)
{ … }
static int pathspec_item_cmp(const void *a_, const void *b_)
{ … }
void pathspec_magic_names(unsigned magic, struct strbuf *out)
{ … }
static void NORETURN unsupported_magic(const char *pattern,
unsigned magic)
{ … }
void parse_pathspec(struct pathspec *pathspec,
unsigned magic_mask, unsigned flags,
const char *prefix, const char **argv)
{ … }
void parse_pathspec_file(struct pathspec *pathspec, unsigned magic_mask,
unsigned flags, const char *prefix,
const char *file, int nul_term_line)
{ … }
void copy_pathspec(struct pathspec *dst, const struct pathspec *src)
{ … }
void clear_pathspec(struct pathspec *pathspec)
{ … }
int match_pathspec_attrs(struct index_state *istate,
const char *name, int namelen,
const struct pathspec_item *item)
{ … }
int pathspec_needs_expanded_index(struct index_state *istate,
const struct pathspec *pathspec)
{ … }