aboutsummaryrefslogtreecommitdiffstats
path: root/dir.h
AgeCommit message (Expand)AuthorFilesLines
2024-02-26dir: create untracked_cache_invalidate_trimmed_path()Jeff Hostetler1-0/+7
2023-10-09dir.[ch]: add 'follow_symlink' arg to 'get_dtype'Victoria Dye1-1/+6
2023-10-09dir.[ch]: expose 'get_dtype'Victoria Dye1-0/+11
2023-07-06Merge branch 'cw/strbuf-cleanup'Junio C Hamano1-0/+4
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-0/+1
2023-06-21hash-ll, hashmap: move oidhash() to hash-llElijah Newren1-0/+1
2023-06-12object-name: move related functions to object-nameCalvin Wan1-0/+2
2023-06-12statinfo.h: move DTYPE defines from dir.hAlejandro R. Sedeño1-14/+0
2023-04-24dir.h: move DTYPE defines from cache.hElijah Newren1-0/+15
2023-03-17Merge branch 'en/header-cleanup'Junio C Hamano1-14/+2
2023-02-27dir: mark output only fields of dir_struct as suchElijah Newren1-8/+8
2023-02-27dir: add a usage note to exclude_per_dirElijah Newren1-2/+6
2023-02-27dir: separate public from internal portion of dir_structElijah Newren1-40/+46
2023-02-23dir.h: refactor to no longer need to include cache.hElijah Newren1-14/+2
2022-11-21dir.c: free "ident" and "exclude_per_dir" in "struct untracked_cache"Ævar Arnfjörð Bjarmason1-0/+1
2022-08-19match_pathname(): drop unused "flags" parameterJeff King1-1/+1
2022-05-16dir API: add a generalized path_match_flags() functionÆvar Arnfjörð Bjarmason1-0/+63
2021-12-09dir: new flag to remove_dir_recurse() to spare the original_cwdElijah Newren1-0/+3
2021-12-09dir: avoid incidentally removing the original_cwd in remove_path()Elijah Newren1-1/+5
2021-09-20Merge branch 'ds/sparse-index-ignored-files'Junio C Hamano1-0/+8
2021-09-07sparse-checkout: create helper methodsDerrick Stolee1-0/+8
2021-08-10dir: libify and export helper functions from clone.cAtharva Raykar1-0/+11
2021-07-28Merge branch 'ew/many-alternate-optim'Junio C Hamano1-0/+2
2021-07-07speed up alt_odb_usable() with many alternatesEric Wong1-0/+2
2021-07-01dir.[ch]: replace dir_init() with DIR_INITÆvar Arnfjörð Bjarmason1-2/+2
2021-05-20Merge branch 'en/dir-traversal'Junio C Hamano1-0/+6
2021-05-13dir: introduce readdir_skip_dot_and_dotdot() helperElijah Newren1-0/+2
2021-05-13dir: report number of visited directories and paths with trace2Elijah Newren1-0/+4
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-4/+4
2021-04-14*: remove 'const' qualifier for struct index_stateDerrick Stolee1-4/+4
2021-02-16exclude: add flags parameter to add_patterns()Jeff King1-1/+2
2021-01-23sparse-checkout: load sparse-checkout patternsDerrick Stolee1-0/+2
2020-08-18dir: fix problematic API to avoid memory leaksElijah Newren1-10/+11
2020-08-18dir: make clear_directory() free all relevant memoryElijah Newren1-1/+1
2019-12-25Merge branch 'ds/sparse-cone'Junio C Hamano1-0/+36
2019-11-22unpack-trees: hash less in cone modeDerrick Stolee1-0/+1
2019-11-22sparse-checkout: init and set in cone modeDerrick Stolee1-0/+4
2019-11-22sparse-checkout: use hashmaps for cone patternsDerrick Stolee1-0/+31
2019-11-18dir: move doc to dir.hHeba Waly1-5/+114
2019-10-11Merge branch 'en/clean-nested-with-ignored'Junio C Hamano1-3/+5
2019-09-17clean: avoid removing untracked files in a nested git repositoryElijah Newren1-1/+2
2019-09-17dir: if our pathspec might match files under a dir, recurse into itElijah Newren1-2/+3
2019-09-05unpack-trees: rename 'is_excluded_from_list()'Derrick Stolee1-4/+17
2019-09-05treewide: rename 'exclude' methods to 'pattern'Derrick Stolee1-11/+11
2019-09-05treewide: rename 'EXCL_FLAG_' to 'PATTERN_FLAG_'Derrick Stolee1-5/+5
2019-09-05treewide: rename 'struct exclude_list' to 'struct pattern_list'Derrick Stolee1-9/+9
2019-09-05treewide: rename 'struct exclude' to 'struct path_pattern'Derrick Stolee1-4/+4
2019-05-13Merge branch 'dl/no-extern-in-func-decl'Junio C Hamano1-70/+70
2019-05-09Merge branch 'nd/sha1-name-c-wo-the-repository'Junio C Hamano1-1/+3
2019-05-05*.[ch]: manually align parameter listsDenton Liu1-31/+31
2019-05-05*.[ch]: remove extern from function declarations using spatchDenton Liu1-35/+35
2019-04-16sha1-name.c: remove the_repo from diagnose_invalid_index_path()Nguyễn Thái Ngọc Duy1-1/+3
2019-03-20report_path_error(): drop unused prefix parameterJeff King1-1/+1
2018-08-13dir.c: remove an implicit dependency on the_index in pathspec codeNguyễn Thái Ngọc Duy1-6/+10
2018-05-30Merge branch 'bc/object-id'Junio C Hamano1-2/+3
2018-05-08Merge branch 'sb/submodule-move-nested'Junio C Hamano1-1/+11
2018-05-02dir: convert struct untracked_cache_dir to object_idbrian m. carlson1-2/+3
2018-03-29submodule: fixup nested submodules after moving the submoduleStefan Beller1-1/+11
2018-02-27Merge branch 'nd/fix-untracked-cache-invalidation'Junio C Hamano1-1/+1
2018-02-07dir.c: ignore paths containing .git when invalidating untracked cacheNguyễn Thái Ngọc Duy1-1/+1
2018-01-30dir: convert struct sha1_stat to use object_idPatryk Obara1-6/+6
2017-12-27Merge branch 'jh/object-filtering'Junio C Hamano1-0/+3
2017-11-22dir: allow exclusions from blob in addition to fileJeff Hostetler1-0/+3
2017-11-21Merge branch 'bp/fsmonitor'Junio C Hamano1-0/+2
2017-10-31status: add option to show ignored files differentlyJameson Miller1-1/+2
2017-10-01fsmonitor: teach git to optionally utilize a file system monitor to speed up ...Ben Peart1-0/+2
2017-06-22Merge branch 'pc/dir-count-slashes'Junio C Hamano1-0/+3
2017-06-12dir: create function count_slashes()Prathamesh Chavan1-0/+3
2017-06-02Merge branch 'sl/clean-d-ignored-fix'Junio C Hamano1-1/+5
2017-05-22dir: expose cmp_name() and check_contains()Samuel Lijin1-0/+3
2017-05-22dir: hide untracked contents of untracked dirsSamuel Lijin1-1/+2
2017-05-06dir: convert fill_directory to take an indexBrandon Williams1-1/+3
2017-05-06dir: convert read_directory to take an indexBrandon Williams1-1/+3
2017-05-06dir: convert is_excluded to take an indexBrandon Williams1-1/+4
2017-05-06dir: convert add_excludes to take an indexBrandon Williams1-1/+1
2017-05-06dir: convert is_excluded_from_list to take an indexBrandon Williams1-2/+4
2017-05-06dir: convert dir_add* to take an indexBrandon Williams1-1/+3
2016-12-12submodule: add absorb-git-dir functionStefan Beller1-0/+3
2016-12-12move connect_work_tree_and_git_dir to dir.hStefan Beller1-0/+1
2016-10-10ls-files: add pathspec matching for submodulesBrandon Williams1-0/+4
2016-07-25Merge branch 'mh/split-under-lock'Junio C Hamano1-0/+23
2016-05-23Merge branch 'nd/worktree-various-heads'Junio C Hamano1-2/+2
2016-05-05remove_dir_recursively(): add docstringMichael Haggerty1-0/+23
2016-04-22dir.c: rename str(n)cmp_icase to fspath(n)cmpNguyễn Thái Ngọc Duy1-2/+2
2016-04-22dir.c: remove dead function fnmatch_icase()Nguyễn Thái Ngọc Duy1-1/+0
2016-04-14Merge branch 'ss/exc-flag-is-a-collection-of-bits' into maintJunio C Hamano1-4/+4
2016-04-06Merge branch 'ss/exc-flag-is-a-collection-of-bits'Junio C Hamano1-4/+4
2016-03-18Revert "Merge branch 'nd/exclusion-regression-fix'"Junio C Hamano1-3/+0
2016-03-01dir: store EXC_FLAG_* values in unsigned integersSaurav Sachidanand1-4/+4
2016-02-15dir.c: support marking some patterns already matchedNguyễn Thái Ngọc Duy1-0/+3
2016-01-25dir: simplify untracked cache "ident" fieldChristian Couder1-1/+0
2016-01-25dir: add remove_untracked_cache()Christian Couder1-0/+1
2016-01-25dir: add {new,add}_untracked_cache()Christian Couder1-0/+1
2015-05-26Merge branch 'nd/untracked-cache'Junio C Hamano1-0/+82
2015-03-26Merge branch 'jc/report-path-error-to-dir'Junio C Hamano1-0/+1
2015-03-24report_path_error(): move to dir.cJunio C Hamano1-0/+1
2015-03-12untracked cache: guard and disable on system changesNguyễn Thái Ngọc Duy1-0/+2
2015-03-12untracked cache: invalidate at index addition or removalNguyễn Thái Ngọc Duy1-0/+4
2015-03-12untracked cache: load from UNTR index extensionNguyễn Thái Ngọc Duy1-0/+2
2015-03-12untracked cache: save to an index extensionNguyễn Thái Ngọc Duy1-0/+1
2015-03-12untracked cache: mark what dirs should be recursed/savedNguyễn Thái Ngọc Duy1-1/+2
2015-03-12untracked cache: record/validate dir mtime and reuse cached outputNguyễn Thái Ngọc Duy1-0/+2
2015-03-12untracked cache: initial untracked cache validationNguyễn Thái Ngọc Duy1-0/+4
2015-03-12untracked cache: record .gitignore information and dir hierarchyNguyễn Thái Ngọc Duy1-0/+60
2015-03-12dir.c: optionally compute sha-1 of a .gitignore fileNguyễn Thái Ngọc Duy1-0/+6
2014-07-14prep_exclude: remove the artificial PATH_MAX limitNguyễn Thái Ngọc Duy1-1/+1
2014-07-14dir.h: move struct exclude declaration to top levelNguyễn Thái Ngọc Duy1-20/+22
2014-02-24pathspec: pass directory indicator to match_pathspec_item()Nguyễn Thái Ngọc Duy1-3/+7
2014-02-24pathspec: rename match_pathspec_depth() to match_pathspec()Nguyễn Thái Ngọc Duy1-5/+5
2014-02-24pathspec: convert some match_pathspec_depth() to dir_path_match()Nguyễn Thái Ngọc Duy1-0/+7
2014-02-24pathspec: convert some match_pathspec_depth() to ce_path_match()Nguyễn Thái Ngọc Duy1-0/+7
2013-09-11Merge branch 'jc/ls-files-killed-optim'Junio C Hamano1-1/+2
2013-08-15ls-files -k: a directory only can be killed if the index has a non-directoryJunio C Hamano1-1/+2
2013-07-15pathspec: support :(glob) syntaxNguyễn Thái Ngọc Duy1-5/+4
2013-07-15remove match_pathspec() in favor of match_pathspec_depth()Nguyễn Thái Ngọc Duy1-1/+0
2013-07-15convert common_prefix() to use struct pathspecNguyễn Thái Ngọc Duy1-1/+1
2013-07-15convert {read,fill}_directory to take struct pathspecNguyễn Thái Ngọc Duy1-2/+2
2013-07-15add parse_pathspec() that converts cmdline args to struct pathspecNguyễn Thái Ngọc Duy1-0/+2
2013-04-15dir.c: git-status --ignored: don't scan the work tree twiceKarsten Blees1-1/+2
2013-04-15dir.c: replace is_path_excluded with now equivalent is_excluded APIKarsten Blees1-13/+3
2013-04-15dir.c: unify is_excluded and is_path_excluded APIsKarsten Blees1-3/+3
2013-01-23Merge branch 'as/check-ignore'Junio C Hamano1-11/+51
2013-01-10Merge branch 'as/dir-c-cleanup'Junio C Hamano1-10/+35
2013-01-06dir.c: improve docs for match_pathspec() and match_pathspec_depth()Adam Spiers1-0/+6
2013-01-06dir.c: provide clear_directory() for reclaiming dir_struct memoryAdam Spiers1-0/+1
2013-01-06dir.c: keep track of where patterns came fromAdam Spiers1-2/+19
2013-01-06dir.c: use a single struct exclude_list per source of excludesAdam Spiers1-10/+26
2012-12-28dir.c: rename free_excludes() to clear_exclude_list()Adam Spiers1-1/+1
2012-12-28dir.c: refactor is_path_excluded()Adam Spiers1-0/+3
2012-12-28dir.c: rename excluded() to is_excluded()Adam Spiers1-2/+2
2012-12-28dir.c: rename excluded_from_list() to is_excluded_from_list()Adam Spiers1-2/+2
2012-12-28dir.c: rename path_excluded() to is_path_excluded()Adam Spiers1-1/+1
2012-12-28dir.c: rename cryptic 'which' variable to more consistent nameAdam Spiers1-2/+2
2012-12-28Improve documentation and comments regarding directory traversal APIAdam Spiers1-2/+24
2012-11-26pathspec: apply "*.c" optimization from excludeNguyễn Thái Ngọc Duy1-0/+1
2012-11-26pathspec: do exact comparison on the leading non-wildcard partNguyễn Thái Ngọc Duy1-0/+8
2012-10-15attr: more matching optimizations from .gitignoreNguyễn Thái Ngọc Duy1-0/+11
2012-10-15gitignore: make pattern parsing code a separate functionNguyễn Thái Ngọc Duy1-1/+1
2012-10-05Merge commit 'f9f6e2c' into nd/attr-match-optim-moreJunio C Hamano1-1/+1
2012-07-11Merge branch 'jc/ls-files-i-dir' into maintJunio C Hamano1-1/+17
2012-06-07exclude: do strcmp as much as possible before fnmatchNguyễn Thái Ngọc Duy1-1/+1
2012-06-05dir.c: make excluded() file scope staticJunio C Hamano1-1/+0
2012-06-05path_excluded(): update API to less cache-entry centricJunio C Hamano1-1/+2
2012-06-03ls-files -i: pay attention to exclusion of leading pathsJunio C Hamano1-0/+16
2012-03-15remove_dir_recursively(): Add flag for skipping removal of toplevel dirJunio C Hamano1-0/+1
2011-09-12rename pathspec_prefix() to common_prefix() and move to dir.[ch]Clemens Buchacher1-1/+1
2011-09-06consolidate pathspec_prefix and common_prefixJunio C Hamano1-0/+1
2011-05-02Merge branch 'nd/maint-setup'Junio C Hamano1-1/+1
2011-03-28Kill off get_relative_cwd()Nguyễn Thái Ngọc Duy1-1/+0
2011-03-28setup: return correct prefix if worktree is '/'Nguyễn Thái Ngọc Duy1-0/+1
2011-02-03pathspec: add match_pathspec_depth()Nguyễn Thái Ngọc Duy1-0/+3
2011-02-03tree_entry_interesting(): support depth limitNguyễn Thái Ngọc Duy1-0/+1
2010-12-22Merge branch 'nd/maint-fix-add-typo-detection'Junio C Hamano1-0/+1
2010-11-29dir.c: add free_excludes()Nguyễn Thái Ngọc Duy1-0/+1
2010-10-06Add string comparison functions that respect the ignore_case variable.Joshua Jensen1-0/+4
2010-07-12git add: Add the "--ignore-missing" option for the dry runJens Lehmann1-0/+1
2010-01-13Merge branch 'nd/sparse'Junio C Hamano1-0/+4
2009-08-23dir.c: export excluded_1() and add_excludes_from_file_1()Nguyễn Thái Ngọc Duy1-0/+4
2009-07-29clean: require double -f options to nuke nested git repository and work treeJunio C Hamano1-1/+4
2009-07-09Simplify read_directory[_recursive]() argumentsLinus Torvalds1-1/+1
2009-07-09Add 'fill_directory()' helper function for directory traversalLinus Torvalds1-2/+1
2009-02-18Turn the flags in struct dir_struct into a single variableJohannes Schindelin1-5/+7
2009-01-11Allow cloning to an existing empty directoryAlexander Potashev1-0/+2
2009-01-11add is_dot_or_dotdot inline functionAlexander Potashev1-0/+7
2008-10-02dir.c: make dir_add_name() and dir_add_ignored() staticNanako Shiraishi1-1/+0
2008-09-29Add remove_path: a function to remove as much as possible of a pathAlex Riesen1-0/+3
2008-02-05gitignore: lazily find dtypeJunio C Hamano1-1/+1
2008-02-05gitignore(5): Allow "foo/" in ignore list to match directory "foo"Junio C Hamano1-1/+2
2007-11-29per-directory-exclude: lazily read .gitignore filesJunio C Hamano1-13/+19
2007-11-14core.excludesfile clean-upJunio C Hamano1-0/+1
2007-10-29Speedup scanning for excluded files.Lars Knoll1-0/+7
2007-09-30Introduce remove_dir_recursively()Johannes Schindelin1-0/+2
2007-08-01Add functions get_relative_cwd() and is_inside_dir()Johannes Schindelin1-0/+3
2007-06-13builtin-add: simplify (and increase accuracy of) exclude handlingJeff King1-3/+1
2007-06-13dir_struct: add collect_ignored optionJeff King1-1/+4
2007-05-21rename dirlink to gitlink.Martin Waitz1-1/+1
2007-04-11Teach directory traversal about subprojectsLinus Torvalds1-1/+2
2007-03-31Optimize directory listing with pathspec limiter.Linus Torvalds1-1/+1
2006-12-29Fix 'git add' with .gitignoreJunio C Hamano1-1/+4
2006-12-29Revert "read_directory: show_both option."Junio C Hamano1-4/+2
2006-12-25read_directory: show_both option.Junio C Hamano1-2/+4
2006-12-25match_pathspec() -- return how well the spec matchedJunio C Hamano1-0/+4
2006-12-05read-tree: further loosen "working file will be lost" check.Junio C Hamano1-0/+3
2006-09-08git-commit.sh: convert run_status to a C builtinJeff King1-0/+1
2006-05-19Move pathspec matching from builtin-add.c into dir.cLinus Torvalds1-0/+3
2006-05-17Clean up git-ls-file directory walking library interfaceLinus Torvalds1-2/+0
2006-05-17libify git-ls-files directory traversalLinus Torvalds1-0/+50