aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
AgeCommit message (Expand)AuthorFilesLines
2021-05-28Merge branch 'en/dir-traversal'Junio C Hamano1-2/+1
2021-05-27dir: introduce readdir_skip_dot_and_dotdot() helperElijah Newren1-9/+16
2021-05-27dir: update stale description of treat_directory()Derrick Stolee1-7/+6
2021-05-27Revert "dir: update stale description of treat_directory()"Junio C Hamano1-6/+7
2021-05-27Revert "dir: introduce readdir_skip_dot_and_dotdot() helper"Junio C Hamano1-17/+9
2021-05-20Merge branch 'en/dir-traversal'Junio C Hamano1-45/+101
2021-05-13dir: introduce readdir_skip_dot_and_dotdot() helperElijah Newren1-9/+17
2021-05-13dir: update stale description of treat_directory()Derrick Stolee1-7/+6
2021-05-13dir: traverse into untracked directories if they may have ignored subfilesElijah Newren1-4/+6
2021-05-13dir: avoid unnecessary traversal into ignored directoryElijah Newren1-15/+29
2021-05-13dir: report number of visited directories and paths with trace2Elijah Newren1-0/+9
2021-05-13dir: convert trace calls to trace2 equivalentsElijah Newren1-13/+37
2021-05-10Merge branch 'bc/hash-transition-interop-part-1'Junio C Hamano1-3/+3
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-6/+8
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-1/+1
2021-04-27Always use oidread to read into struct object_idbrian m. carlson1-2/+2
2021-04-14dir: ensure full indexDerrick Stolee1-0/+2
2021-04-14*: remove 'const' qualifier for struct index_stateDerrick Stolee1-6/+6
2021-03-22Merge branch 'jk/open-dotgitx-with-nofollow'Junio C Hamano1-6/+15
2021-03-13use CALLOC_ARRAYRené Scharfe1-3/+3
2021-03-01Merge branch 'jh/untracked-cache-fix'Junio C Hamano1-5/+2
2021-02-24dir: fix malloc of root untracked_cache_dirJeff Hostetler1-5/+2
2021-02-16exclude: do not respect symlinks for in-tree .gitignoreJeff King1-2/+10
2021-02-16exclude: add flags parameter to add_patterns()Jeff King1-6/+7
2021-01-23sparse-checkout: load sparse-checkout patternsDerrick Stolee1-0/+17
2020-11-21Merge branch 'en/strmap'Junio C Hamano1-4/+4
2020-11-02Merge branch 'nk/dir-c-comment-update'Junio C Hamano1-3/+3
2020-11-02hashmap: provide deallocation function namesElijah Newren1-4/+4
2020-10-16dir.c: fix comments to agree with argument nameAlex Vandiver1-3/+3
2020-09-30dir.c: drop unused "untracked" from treat_path_fast()Jeff King1-2/+1
2020-08-27Merge branch 'jk/leakfix'Junio C Hamano1-0/+2
2020-08-24Merge branch 'en/dir-clear'Junio C Hamano1-3/+17
2020-08-24Merge branch 'en/dir-nonbare-embedded'Junio C Hamano1-3/+6
2020-08-18dir: fix problematic API to avoid memory leaksElijah Newren1-2/+7
2020-08-18dir: make clear_directory() free all relevant memoryElijah Newren1-2/+11
2020-08-14clear_pattern_list(): clear embedded hashmapsJeff King1-0/+2
2020-08-12dir: avoid prematurely marking nonbare repositories as matchesElijah Newren1-3/+6
2020-07-30Merge branch 'en/fill-directory-exponential' into masterJunio C Hamano1-2/+2
2020-07-20dir: check pathspecs before returning `path_excluded`Martin Ågren1-2/+2
2020-06-25Merge branch 'en/clean-cleanups'Junio C Hamano1-5/+10
2020-06-17Merge branch 'en/do-match-pathspec-fix'Junio C Hamano1-17/+33
2020-06-12dir, clean: avoid disallowed behaviorElijah Newren1-0/+4
2020-06-12dir: fix a few confusing commentsElijah Newren1-5/+6
2020-06-05dir: fix treatment of negated pathspecsElijah Newren1-17/+33
2020-04-29Merge branch 'en/fill-directory-exponential'Junio C Hamano1-174/+248
2020-04-01Fix error-prone fill_directory() API; make it only return matchesElijah Newren1-1/+8
2020-04-01dir: replace double pathspec matching with single in treat_directory()Elijah Newren1-19/+19
2020-04-01dir: include DIR_KEEP_UNTRACKED_CONTENTS handling in treat_directory()Elijah Newren1-24/+19
2020-04-01dir: replace exponential algorithm with a linear oneElijah Newren1-63/+147
2020-04-01dir: refactor treat_directory to clarify control flowDerrick Stolee1-18/+17
2020-04-01dir: fix confusion based on variable tenseElijah Newren1-13/+13
2020-04-01dir: fix broken commentElijah Newren1-1/+1
2020-04-01dir: consolidate treat_path() and treat_one_path()Elijah Newren1-66/+55
2020-04-01dir: fix simple typo in commentElijah Newren1-1/+1
2020-03-05Merge branch 'ds/sparse-add'Junio C Hamano1-1/+1
2020-02-20sparse-checkout: allow one-character directories in cone modeDerrick Stolee1-1/+1
2020-02-14Merge branch 'mt/use-passed-repo-more-in-funcs'Junio C Hamano1-2/+2
2020-02-14Merge branch 'ds/sparse-checkout-harden'Junio C Hamano1-4/+75
2020-01-31sparse-checkout: properly match escaped charactersDerrick Stolee1-3/+32
2020-01-31sparse-checkout: warn on globs in cone patternsDerrick Stolee1-0/+36
2020-01-31sha1-file: pass git_hash_algo to hash_object_file()Matheus Tavares1-2/+2
2020-01-24sparse-checkout: detect short patternsDerrick Stolee1-1/+2
2020-01-24sparse-checkout: cone mode does not recognize "**"Derrick Stolee1-1/+6
2020-01-16dir: point treat_leading_path() warning to the right placeJeff King1-3/+3
2020-01-16dir: restructure in a way to avoid passing around a struct direntJeff King1-42/+31
2020-01-16dir: treat_leading_path() and read_directory_recursive(), round 2Elijah Newren1-0/+4
2019-12-25Merge branch 'en/fill-directory-fixes'Junio C Hamano1-49/+138
2019-12-25Merge branch 'ds/sparse-cone'Junio C Hamano1-8/+208
2019-12-20dir.c: use st_add3() for allocation sizeJunio C Hamano1-1/+1
2019-12-19dir: consolidate similar code in treat_directory()Elijah Newren1-11/+7
2019-12-19dir: synchronize treat_leading_path() and read_directory_recursive()Elijah Newren1-0/+30
2019-12-19dir: fix checks on common prefix directoryElijah Newren1-11/+56
2019-12-16Merge branch 'hw/doc-in-header'Junio C Hamano1-2/+0
2019-12-13sparse-checkout: respect core.ignoreCase in cone modeDerrick Stolee1-3/+12
2019-12-11dir: break part of read_directory_recursive() out for reuseElijah Newren1-23/+37
2019-12-11dir: exit before wildcard fall-through if there is no wildcardElijah Newren1-0/+7
2019-12-11dir: remove stray quote character in commentElijah Newren1-1/+1
2019-12-11Revert "dir.c: make 'git-status --ignored' work within leading directories"Elijah Newren1-3/+0
2019-11-22unpack-trees: hash less in cone modeDerrick Stolee1-2/+2
2019-11-22sparse-checkout: init and set in cone modeDerrick Stolee1-4/+4
2019-11-22sparse-checkout: use hashmaps for cone patternsDerrick Stolee1-8/+199
2019-11-18dir: move doc to dir.hHeba Waly1-2/+0
2019-11-10Fix spelling errors in code commentsElijah Newren1-1/+1
2019-10-11Merge branch 'en/clean-nested-with-ignored'Junio C Hamano1-17/+48
2019-10-02dir: special case check for the possibility that pathspec is NULLElijah Newren1-3/+5
2019-09-30Merge branch 'ds/include-exclude'Junio C Hamano1-136/+148
2019-09-17clean: avoid removing untracked files in a nested git repositoryElijah Newren1-0/+10
2019-09-17dir: add commentary explaining match_pathspec_item's return valueElijah Newren1-8/+19
2019-09-17dir: if our pathspec might match files under a dir, recurse into itElijah Newren1-4/+6
2019-09-17dir: make the DO_MATCH_SUBMODULE code reusable for a non-submodule caseElijah Newren1-3/+3
2019-09-17dir: also check directories for matching pathspecsElijah Newren1-0/+5
2019-09-17dir: fix off-by-one error in match_pathspec_itemElijah Newren1-1/+2
2019-09-17dir: fix typo in commentElijah Newren1-1/+1
2019-09-05unpack-trees: rename 'is_excluded_from_list()'Derrick Stolee1-8/+17
2019-09-05treewide: rename 'exclude' methods to 'pattern'Derrick Stolee1-39/+39
2019-09-05treewide: rename 'EXCL_FLAG_' to 'PATTERN_FLAG_'Derrick Stolee1-11/+11
2019-09-05treewide: rename 'struct exclude_list' to 'struct pattern_list'Derrick Stolee1-53/+53
2019-09-05treewide: rename 'struct exclude' to 'struct path_pattern'Derrick Stolee1-56/+59
2019-06-13cleanup: fix possible overflow errors in binary search, part 2René Scharfe1-1/+1
2019-05-09Merge branch 'jk/untracked-cache-more-fixes'Junio C Hamano1-23/+18
2019-05-09Merge branch 'nd/sha1-name-c-wo-the-repository'Junio C Hamano1-0/+8
2019-05-09Merge branch 'km/empty-repo-is-still-a-repo'Junio C Hamano1-2/+4
2019-04-25Merge branch 'js/untracked-cache-allocfix'Junio C Hamano1-1/+1
2019-04-25Merge branch 'bc/hash-transition-16'Junio C Hamano1-14/+14
2019-04-19untracked-cache: simplify parsing by dropping "len"Jeff King1-8/+5
2019-04-19untracked-cache: simplify parsing by dropping "next"Jeff King1-13/+7
2019-04-19untracked-cache: be defensive about missing NULs in indexJeff King1-7/+11
2019-04-16sha1-name.c: remove the_repo from diagnose_invalid_index_path()Nguyễn Thái Ngọc Duy1-0/+8
2019-04-12untracked cache: fix off-by-oneJohannes Schindelin1-1/+1
2019-04-10dir: do not traverse repositories with no commitsKyle Meyer1-2/+4
2019-04-01dir: make untracked cache extension hash size independentbrian m. carlson1-14/+14
2019-03-20report_path_error(): drop unused prefix parameterJeff King1-2/+1
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-39/+2
2018-11-02pathspec: handle non-terminated strings with :(attr)Jeff King1-0/+7
2018-09-17Merge branch 'jk/cocci'Junio C Hamano1-3/+3
2018-09-17Merge branch 'nd/unpack-trees-with-cache-tree'Junio C Hamano1-3/+6
2018-08-29convert "oidcmp() != 0" to "!oideq()"Jeff King1-3/+3
2018-08-20Merge branch 'nd/no-the-index'Junio C Hamano1-11/+16
2018-08-18trace.h: support nested performance tracingNguyễn Thái Ngọc Duy1-3/+6
2018-08-15Merge branch 'nd/i18n'Junio C Hamano1-4/+4
2018-08-13dir.c: remove an implicit dependency on the_index in pathspec codeNguyễn Thái Ngọc Duy1-11/+16
2018-08-13attr: remove an implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-07-23dir.c: mark more strings for translationNguyễn Thái Ngọc Duy1-3/+3
2018-07-23Update messages in preparation for i18nNguyễn Thái Ngọc Duy1-2/+2
2018-07-18Merge branch 'tz/exclude-doc-smallfixes'Junio C Hamano1-1/+1
2018-07-18Merge branch 'sb/object-store-grafts'Junio C Hamano1-0/+1
2018-06-27dir.c: fix typos in core.excludesfile commentTodd Zullinger1-1/+1
2018-06-18Merge branch 'jk/ewah-bounds-check'Junio C Hamano1-1/+2
2018-06-18ewah: adjust callers of ewah_read_mmap()Jeff King1-1/+2
2018-05-30Merge branch 'bc/object-id'Junio C Hamano1-12/+13
2018-05-29Sync with Git 2.17.1Junio C Hamano1-1/+1
2018-05-22Sync with Git 2.16.4Junio C Hamano1-1/+1
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-08Merge branch 'sb/submodule-move-nested'Junio C Hamano1-3/+57
2018-05-02dir: use the_hash_algo for empty blob object IDbrian m. carlson1-1/+1
2018-05-02dir: convert struct untracked_cache_dir to object_idbrian m. carlson1-11/+12
2018-03-29submodule: fixup nested submodules after moving the submoduleStefan Beller1-3/+57
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-1/+1
2018-03-08Merge branch 'bp/untracked-cache-noflush'Junio C Hamano1-2/+13
2018-02-28untracked cache: use git_env_bool() not getenv() for customizationJunio C Hamano1-2/+12
2018-02-27Merge branch 'nd/fix-untracked-cache-invalidation'Junio C Hamano1-14/+27
2018-02-15Merge branch 'nd/trace-index-ops'Junio C Hamano1-0/+2
2018-02-15Merge branch 'po/object-id'Junio C Hamano1-54/+50
2018-02-07dir.c: ignore paths containing .git when invalidating untracked cacheNguyễn Thái Ngọc Duy1-4/+6
2018-02-05dir.c: don't flag the index as dirty for changes to the untracked cacheBen Peart1-1/+2
2018-02-02trace: measure where the time is spent in the index-heavy operationsNguyễn Thái Ngọc Duy1-0/+2
2018-02-02dir.c: stop ignoring opendir() error in open_cached_dir()Nguyễn Thái Ngọc Duy1-1/+6
2018-01-30sha1_file: convert hash_sha1_file to object_idPatryk Obara1-2/+2
2018-01-30dir: convert struct sha1_stat to use object_idPatryk Obara1-54/+50
2018-01-24dir.c: fix missing dir invalidation in untracked codeNguyễn Thái Ngọc Duy1-8/+14
2018-01-24dir.c: avoid stat() in valid_cached_dir()Nguyễn Thái Ngọc Duy1-1/+1
2018-01-22Use MOVE_ARRAYSZEDER Gábor1-2/+2
2017-12-27Merge branch 'jh/object-filtering'Junio C Hamano1-31/+101
2017-11-22dir: allow exclusions from blob in addition to fileJeff Hostetler1-31/+101
2017-11-21Merge branch 'bp/fsmonitor'Junio C Hamano1-10/+17
2017-11-13Merge branch 'jm/status-ignored-files-list'Junio C Hamano1-2/+42
2017-11-06Merge branch 'bc/object-id'Junio C Hamano1-4/+4
2017-11-06Merge branch 'js/submodule-in-excluded'Junio C Hamano1-1/+1
2017-10-31status: report matching ignored and normal untrackedJameson Miller1-2/+18
2017-10-31status: add option to show ignored files differentlyJameson Miller1-0/+24
2017-10-26status: do not get confused by submodules in excluded directoriesJohannes Schindelin1-1/+1
2017-10-16refs: convert resolve_gitlink_ref to struct object_idbrian m. carlson1-2/+2
2017-10-16Convert remaining callers of resolve_gitlink_ref to object_idbrian m. carlson1-4/+4
2017-10-01fsmonitor: teach git to optionally utilize a file system monitor to speed up ...Ben Peart1-10/+17
2017-09-19Improve performance of git status --ignoredJameson Miller1-6/+41
2017-08-23Merge branch 'rs/stat-data-unaligned-reads-fix' into maintJunio C Hamano1-23/+27
2017-08-11Merge branch 'rs/stat-data-unaligned-reads-fix'Junio C Hamano1-23/+27
2017-07-17dir: support platforms that require aligned readsRené Scharfe1-23/+27
2017-07-10Merge branch 'ab/wildmatch'Junio C Hamano1-5/+3
2017-06-24Merge branch 'ab/free-and-null'Junio C Hamano1-6/+3
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-24Merge branch 'bw/ls-files-sans-the-index'Junio C Hamano1-1/+1
2017-06-23wildmatch: remove unused wildopts parameterÆvar Arnfjörð Bjarmason1-5/+3
2017-06-22Merge branch 'pc/dir-count-slashes'Junio C Hamano1-0/+9
2017-06-16coccinelle: make use of the "type" FREE_AND_NULL() ruleÆvar Arnfjörð Bjarmason1-6/+3
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-13Merge branch 'nd/fopen-errors'Junio C Hamano1-3/+3
2017-06-13Merge branch 'jc/noent-notdir'Junio C Hamano1-1/+1
2017-06-13Merge branch 'sl/clean-d-ignored-fix' into maintJunio C Hamano1-4/+39
2017-06-13convert: convert convert_to_git to take an indexBrandon Williams1-1/+1
2017-06-12dir: create function count_slashes()Prathamesh Chavan1-0/+9
2017-06-02Merge branch 'sl/clean-d-ignored-fix'Junio C Hamano1-4/+39
2017-05-30treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checkedJunio C Hamano1-1/+1
2017-05-26wrapper.c: add and use warn_on_fopen_errors()Nguyễn Thái Ngọc Duy1-3/+3
2017-05-22dir: expose cmp_name() and check_contains()Samuel Lijin1-5/+6
2017-05-22dir: hide untracked contents of untracked dirsSamuel Lijin1-0/+31
2017-05-22dir: recurse into untracked dirs for ignored filesSamuel Lijin1-1/+4
2017-05-06dir: convert fill_directory to take an indexBrandon Williams1-2/+4
2017-05-06dir: convert read_directory to take an indexBrandon Williams1-8/+8
2017-05-06dir: convert read_directory_recursive to take an indexBrandon Williams1-23/+29
2017-05-06dir: convert open_cached_dir to take an indexBrandon Williams1-5/+7
2017-05-06dir: convert is_excluded to take an indexBrandon Williams1-7/+9
2017-05-06dir: convert prep_exclude to take an indexBrandon Williams1-6/+8
2017-05-06dir: convert add_excludes to take an indexBrandon Williams1-14/+15
2017-05-06dir: convert is_excluded_from_list to take an indexBrandon Williams1-2/+3
2017-05-06dir: convert last_exclude_matching_from_list to take an indexBrandon Williams1-5/+8
2017-05-06dir: convert dir_add* to take an indexBrandon Williams1-7/+11
2017-05-06dir: convert get_dtype to take indexBrandon Williams1-10/+13