aboutsummaryrefslogtreecommitdiffstats
path: root/pathspec.c
AgeCommit message (Expand)AuthorFilesLines
2023-11-04attr: enable attr pathspec magic for git-add and git-stashJoanna Wang1-9/+30
2023-10-20grep: die gracefully when outside repositoryKristoffer Haugsbakk1-1/+6
2023-09-29parse: separate out parsing functions from config.hCalvin Wan1-1/+1
2023-06-21git-compat-util.h: remove unneccessary include of wildmatch.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-1/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-06-20Merge branch 'jk/log-follow-with-non-literal-pathspec'Junio C Hamano1-7/+12
2023-06-03pathspec: factor out magic-to-name functionJeff King1-7/+12
2023-05-17Merge branch 'jc/attr-source-tree'Junio C Hamano1-1/+1
2023-05-06attr: teach "--attr-source=<tree>" global option to "git"John Cai1-1/+1
2023-04-24hash-ll.h: split out of hash.h to remove dependency on repository.hElijah Newren1-0/+1
2023-04-24symlinks.h: move declarations for symlinks.c functions from cache.hElijah Newren1-0/+1
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+1
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21abspath.h: move absolute path functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-06docs & comments: replace mentions of "git-add--interactive.perl"Ævar Arnfjörð Bjarmason1-1/+1
2023-01-23Merge branch 'kn/attr-from-tree'Junio C Hamano1-1/+1
2023-01-14attr: add flag `--source` to work with tree-ishKarthik Nayak1-1/+1
2023-01-09use DUP_ARRAYRené Scharfe1-4/+2
2022-08-08pathspec.h: move pathspec_needs_expanded_index() from reset.c to hereShaoxuan Yuan1-0/+89
2022-06-07Merge branch 'jc/all-negative-pathspec'Junio C Hamano1-1/+1
2022-05-29pathspec: correct an empty string used as a pathspec elementJunio C Hamano1-1/+1
2021-09-28add: skip tracked paths outside sparse-checkout coneDerrick Stolee1-2/+3
2021-07-29pathspec: stop calling ensure_full_indexDerrick Stolee1-2/+0
2021-05-07Merge branch 'mt/add-rm-in-sparse-checkout'Junio C Hamano1-3/+22
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-3/+5
2021-04-14pathspec: ensure full indexDerrick Stolee1-0/+2
2021-04-14*: remove 'const' qualifier for struct index_stateDerrick Stolee1-3/+3
2021-04-08add: warn when asked to update SKIP_WORKTREE entriesMatheus Tavares1-0/+15
2021-04-08pathspec: allow to ignore SKIP_WORKTREE entries on index matchingMatheus Tavares1-3/+7
2021-03-13use CALLOC_ARRAYRené Scharfe1-2/+2
2020-07-30strvec: rename struct fieldsJeff King1-1/+1
2020-07-28strvec: convert remaining callers away from argv_array nameJeff King1-3/+3
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-03-15prefix_path: show gitdir if worktree unavailableEmily Shaffer1-2/+6
2020-02-16prefix_path: show gitdir when arg is outside repoEmily Shaffer1-1/+2
2019-11-20pathspec: add new function to parse fileAlexandr Miloslavskiy1-0/+38
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-1/+0
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-1/+0
2018-11-19dir.c: move, rename and export match_attrs()Nguyễn Thái Ngọc Duy1-0/+38
2018-08-13pathspec.c: use the right index instead of the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-08-13dir.c: remove an implicit dependency on the_index in pathspec codeNguyễn Thái Ngọc Duy1-1/+1
2018-05-06Convert remaining die*(BUG) messagesJohannes Schindelin1-1/+1
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-5/+5
2017-11-06Merge branch 'ex/deprecate-empty-pathspec-as-match-all'Junio C Hamano1-7/+4
2017-09-21pathspec doc: parse_pathspec does not maintain references to argsJonathan Nieder1-4/+0
2017-06-27Spelling fixesVille Skyttä1-1/+1
2017-06-24Merge branch 'ab/free-and-null'Junio C Hamano1-2/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-23pathspec: die on empty strings as pathspecEmily Xie1-7/+4
2017-06-16coccinelle: make use of the "type" FREE_AND_NULL() ruleÆvar Arnfjörð Bjarmason1-2/+1
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-05-12pathspec: convert find_pathspecs_matching_against_index to take an indexBrandon Williams1-4/+7
2017-05-12pathspec: remove PATHSPEC_STRIP_SUBMODULE_SLASH_CHEAPBrandon Williams1-15/+0
2017-05-12pathspec: remove PATHSPEC_STRIP_SUBMODULE_SLASH_EXPENSIVE flagBrandon Williams1-29/+0
2017-05-10submodule: add die_in_unpopulated_submodule functionBrandon Williams1-29/+0
2017-05-10pathspec: provide a more descriptive die messageBrandon Williams1-1/+1
2017-04-26Merge branch 'ps/pathspec-empty-prefix-origin'Junio C Hamano1-1/+1
2017-04-16pathspec: fix segfault in clear_pathspecBrandon Williams1-1/+1
2017-04-14pathspec: honor `PATHSPEC_PREFIX_ORIGIN` with empty prefixPatrick Steinhardt1-1/+1
2017-03-13pathspec: allow escaped query valuesBrandon Williams1-4/+48
2017-03-13pathspec: allow querying for attributesBrandon Williams1-5/+108
2017-02-10pathspec: don't error out on all-exclusionary pathspec patternsLinus Torvalds1-5/+10
2017-02-10pathspec magic: add '^' as alias for '!'Linus Torvalds1-0/+6
2017-01-09pathspec: give better message for submodule related pathspec errorStefan Beller1-2/+33
2017-01-08pathspec: rename prefix_pathspec to init_pathspec_itemBrandon Williams1-17/+7
2017-01-08pathspec: small readability changesBrandon Williams1-10/+15
2017-01-08pathspec: create strip submodule slash helpersBrandon Williams1-26/+42
2017-01-08pathspec: create parse_element_magic helperBrandon Williams1-17/+20
2017-01-08pathspec: create parse_long_magic functionBrandon Williams1-35/+57
2017-01-08pathspec: create parse_short_magic functionBrandon Williams1-18/+36
2017-01-08pathspec: factor global magic into its own functionBrandon Williams1-49/+78
2017-01-08pathspec: simpler logic to prefix original pathspec elementsBrandon Williams1-20/+13
2017-01-08pathspec: always show mnemonic and name in unsupported_magicBrandon Williams1-15/+9
2017-01-08pathspec: remove unused variable from unsupported_magicBrandon Williams1-3/+2
2017-01-08pathspec: copy and free owned memoryBrandon Williams1-4/+19
2017-01-08pathspec: remove the deprecated get_pathspec functionBrandon Williams1-39/+3
2016-10-26Merge branch 'ex/deprecate-empty-pathspec-as-match-all'Junio C Hamano1-2/+9
2016-10-10Merge branch 'rs/qsort'Junio C Hamano1-2/+1
2016-09-29use QSORTRené Scharfe1-2/+1
2016-09-25use COPY_ARRAYRené Scharfe1-2/+1
2016-06-22pathspec: warn on empty strings as pathspecEmily Xie1-2/+9
2016-06-02pathspec: rename free_pathspec() to clear_pathspec()Junio C Hamano1-1/+1
2016-02-22convert trivial cases to ALLOC_ARRAYJeff King1-2/+3
2014-07-21Merge branch 'maint'Junio C Hamano1-2/+1
2014-07-21use xcalloc() to allocate zero-initialized memoryRené Scharfe1-2/+1
2014-07-10use strbuf_addch for adding single charactersRené Scharfe1-1/+1
2014-02-24pathspec: convert some match_pathspec_depth() to ce_path_match()Nguyễn Thái Ngọc Duy1-1/+1
2014-01-10Merge branch 'nd/negative-pathspec'Junio C Hamano1-11/+26
2013-12-17Merge branch 'cc/starts-n-ends-with'Junio C Hamano1-1/+1
2013-12-06pathspec.c: support adding prefix magic to a pathspec with mnemonic magicNguyễn Thái Ngọc Duy1-10/+18
2013-12-06Support pathspec magic :(exclude) and its short form :!Nguyễn Thái Ngọc Duy1-1/+8
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-1/+1
2013-12-03Merge branch 'mi/typofixes'Junio C Hamano1-2/+2
2013-11-12typofixes: fix misspelt commentsMasanari Iida1-2/+2
2013-10-28pathspec: stop --*-pathspecs impact on internal parse_pathspec() usesNguyễn Thái Ngọc Duy1-1/+8
2013-09-09Merge branch 'nd/magic-pathspec'Junio C Hamano1-1/+3
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-39/+410
2013-09-05pathspec: catch prepending :(prefix) on pathspec with short magicNguyễn Thái Ngọc Duy1-1/+3
2013-07-15parse_pathspec: accept :(icase)path syntaxNguyễn Thái Ngọc Duy1-1/+8
2013-07-15pathspec: support :(glob) syntaxNguyễn Thái Ngọc Duy1-5/+42
2013-07-15pathspec: make --literal-pathspecs disable pathspec magicNguyễn Thái Ngọc Duy1-1/+1
2013-07-15pathspec: support :(literal) syntax for noglob pathspecNguyễn Thái Ngọc Duy1-3/+8
2013-07-15kill limit_pathspec_to_literal() as it's only used by parse_pathspec()Nguyễn Thái Ngọc Duy1-2/+6
2013-07-15parse_pathspec: preserve prefix length via PATHSPEC_PREFIX_ORIGINNguyễn Thái Ngọc Duy1-5/+36
2013-07-15parse_pathspec: make sure the prefix part is wildcard-freeNguyễn Thái Ngọc Duy1-4/+17
2013-07-15rename field "raw" to "_raw" in struct pathspecNguyễn Thái Ngọc Duy1-3/+3
2013-07-15remove match_pathspec() in favor of match_pathspec_depth()Nguyễn Thái Ngọc Duy1-12/+7
2013-07-15remove init_pathspec() in favor of parse_pathspec()Nguyễn Thái Ngọc Duy1-0/+6
2013-07-15add: convert to use parse_pathspecNguyễn Thái Ngọc Duy1-43/+0
2013-07-15check-ignore: convert to use parse_pathspecNguyễn Thái Ngọc Duy1-1/+5
2013-07-15parse_pathspec: support prefixing original patternsNguyễn Thái Ngọc Duy1-1/+11
2013-07-15parse_pathspec: support stripping/checking submodule pathsNguyễn Thái Ngọc Duy1-0/+26
2013-07-15parse_pathspec: support stripping submodule trailing slashesNguyễn Thái Ngọc Duy1-0/+9
2013-07-15parse_pathspec: add special flag for max_depth featureNguyễn Thái Ngọc Duy1-2/+6
2013-07-15parse_pathspec: add PATHSPEC_PREFER_{CWD,FULL} flagsNguyễn Thái Ngọc Duy1-1/+12
2013-07-15parse_pathspec: save original pathspec for reportingNguyễn Thái Ngọc Duy1-0/+2
2013-07-15add parse_pathspec() that converts cmdline args to struct pathspecNguyễn Thái Ngọc Duy1-38/+130
2013-07-15pathspec: add copy_pathspecNguyễn Thái Ngọc Duy1-0/+8
2013-07-15pathspec: i18n-ize error strings in pathspec parsing codeNguyễn Thái Ngọc Duy1-3/+3
2013-07-15move struct pathspec and related functions to pathspec.[ch]Nguyễn Thái Ngọc Duy1-0/+150
2013-07-09Convert "struct cache_entry *" to "const ..." wherever possibleNguyễn Thái Ngọc Duy1-2/+2
2013-01-06add.c: extract new die_if_path_beyond_symlink() for reuseAdam Spiers1-0/+12
2013-01-06add.c: extract check_path_for_gitlink() from treat_gitlinks() for reuseAdam Spiers1-0/+31
2013-01-06pathspec.c: rename newly public functions for clarityAdam Spiers1-8/+9
2013-01-06add.c: move pathspec matchers into new pathspec.c for reuseAdam Spiers1-0/+57