aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/ls-files.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-25factor out strbuf_expand_bad_format()René Scharfe1-9/+1
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-4/+0
2023-07-06Merge branch 'rs/strbuf-expand-step'Junio C Hamano1-63/+46
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-06-21sparse-index.h: move declarations for sparse-index.c from cache.hElijah Newren1-0/+1
2023-06-21read-cache: move shared commit and ls-files codeElijah Newren1-137/+0
2023-06-18strbuf: simplify strbuf_expand_literal_cb()René Scharfe1-1/+1
2023-06-18replace strbuf_expand() with strbuf_expand_step()René Scharfe1-63/+46
2023-05-23ls-files: align format atoms with ls-treeZheNing Hu1-0/+27
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+2
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on convert.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+2
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-2/+2
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-2/+2
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-21Merge branch 'aj/ls-files-format-fix'Junio C Hamano1-1/+4
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-10ls-files: fix "--format" output of relative pathsAdam Johnson1-1/+4
2022-11-21ls-files: fix a --with-tree memory leakÆvar Arnfjörð Bjarmason1-0/+1
2022-09-12ls-files: fix black space in error messageZheNing Hu1-1/+1
2022-07-23ls-files: introduce "--format" optionZheNing Hu1-0/+95
2022-02-23ls-files: support --recurse-submodules --stageJonathan Tan1-2/+2
2022-01-10Merge branch 'ja/i18n-similar-messages'Junio C Hamano1-1/+1
2022-01-05i18n: turn "options are incompatible" into "cannot be used together"Jean-Noël Avila1-1/+1
2021-12-22ls-files: add --sparse optionDerrick Stolee1-2/+10
2021-10-07ls-files: add missing string_list_clear()Ævar Arnfjörð Bjarmason1-0/+1
2021-10-07ls-files: fix a trivial dir_clear() leakÆvar Arnfjörð Bjarmason1-8/+5
2021-10-06Merge branch 'jt/add-submodule-odb-clean-up'Junio C Hamano1-3/+1
2021-09-22ls-files: use imperative mood for -X and -z option descriptionBagas Sanjaya1-2/+2
2021-09-09repository: support unabsorbed in repo_submodule_initJonathan Tan1-3/+1
2021-07-01dir.[ch]: replace dir_init() with DIR_INITÆvar Arnfjörð Bjarmason1-2/+1
2021-05-20Merge branch 'en/dir-traversal'Junio C Hamano1-0/+3
2021-05-13ls-files: error out on -i unless -o or -c are specifiedElijah Newren1-0/+3
2021-05-10Merge branch 'bc/hash-transition-interop-part-1'Junio C Hamano1-1/+1
2021-05-07Merge branch 'ah/plugleaks'Junio C Hamano1-1/+2
2021-04-28ls-files: free max_prefix when doneAndrzej Hunt1-1/+2
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-1/+1
2021-04-14ls-files: ensure full indexDerrick Stolee1-0/+4
2021-04-14*: remove 'const' qualifier for struct index_stateDerrick Stolee1-5/+5
2021-03-20tree.h API: simplify read_tree_recursive() signatureÆvar Arnfjörð Bjarmason1-3/+3
2021-03-20ls-files: refactor away read_tree()Ævar Arnfjörð Bjarmason1-43/+34
2021-03-20ls-files: don't needlessly pass around stage variableÆvar Arnfjörð Bjarmason1-17/+8
2021-03-20tree.c API: move read_tree() into builtin/ls-files.cÆvar Arnfjörð Bjarmason1-0/+91
2021-01-23ls-files.c: add --deduplicate optionZheNing Hu1-3/+28
2021-01-23ls_files.c: consolidate two for loops into oneZheNing Hu1-36/+27
2021-01-23ls_files.c: bugfix for --deleted and --modifiedZheNing Hu1-4/+7
2020-08-18dir: fix problematic API to avoid memory leaksElijah Newren1-2/+2
2020-05-05Merge branch 'dl/opt-callback-cleanup'Junio C Hamano1-6/+6
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-6/+6
2020-04-01Fix error-prone fill_directory() API; make it only return matchesElijah Newren1-2/+3
2019-09-30Merge branch 'ds/include-exclude'Junio C Hamano1-4/+4
2019-09-05treewide: rename 'exclude' methods to 'pattern'Derrick Stolee1-3/+3
2019-09-05treewide: rename 'struct exclude_list' to 'struct pattern_list'Derrick Stolee1-3/+3
2019-06-13cleanup: fix possible overflow errors in binary search, part 2René Scharfe1-1/+1
2019-04-25Merge branch 'tg/ls-files-debug-format-fix'Junio C Hamano1-5/+5
2019-04-08ls-files: use correct format stringThomas Gummerer1-5/+5
2019-03-20report_path_error(): drop unused prefix parameterJeff King1-1/+1
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-1/+0
2019-01-29Merge branch 'sb/submodule-recursive-fetch-gets-the-tip'Junio C Hamano1-5/+7
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-1/+0
2018-12-05repository: repo_submodule_init to take a submodule structStefan Beller1-5/+7
2018-11-19tree.c: make read_tree*() take 'struct repository *'Nguyễn Thái Ngọc Duy1-1/+1
2018-11-06assert NOARG/NONEG behavior of parse-options callbacksJeff King1-0/+7
2018-11-06ls-files: mark exclude options as NONEGJeff King1-3/+4
2018-08-13ls-files: correct index argument to get_convert_attr_ascii()Nguyễn Thái Ngọc Duy1-8/+9
2018-08-13dir.c: remove an implicit dependency on the_index in pathspec codeNguyễn Thái Ngọc Duy1-3/+3
2018-08-13convert.c: remove an implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-06-01Merge branch 'nd/use-opt-int-set-f'Junio C Hamano1-3/+3
2018-05-24Use OPT_SET_INT_F() for cmdline option specificationNguyễn Thái Ngọc Duy1-3/+3
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-1/+1
2018-03-14Convert find_unique_abbrev* to struct object_idbrian m. carlson1-2/+2
2018-03-14resolve-undo: convert struct resolve_undo_info to object_idbrian m. carlson1-1/+1
2017-11-21Merge branch 'bp/fsmonitor'Junio C Hamano1-2/+6
2017-10-01ls-files: Add support in ls-files to display the fsmonitor valid bitBen Peart1-2/+6
2017-09-08add UNLEAK annotation for reducing leak false positivesJeff King1-0/+1
2017-08-26Merge branch 'bw/submodule-config-cleanup'Junio C Hamano1-5/+1
2017-08-03submodule-config: lazy-load a repository's .gitmodules fileBrandon Williams1-5/+0
2017-08-03submodule-config: move submodule-config functions to submodule-config.cBrandon Williams1-0/+1
2017-07-17ls-files: don't try to prune an empty indexRené Scharfe1-1/+1
2017-07-17use MOVE_ARRAYRené Scharfe1-2/+1
2017-06-23ls-files: use repository objectBrandon Williams1-114/+78
2017-06-23Merge branches 'bw/ls-files-sans-the-index' and 'bw/config-h' into bw/repo-ob...Junio C Hamano1-79/+100
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-13ls-files: factor out tag calculationBrandon Williams1-16/+25
2017-06-13ls-files: factor out debug info into a functionBrandon Williams1-9/+14
2017-06-13ls-files: convert show_files to take an indexBrandon Williams1-15/+15
2017-06-13ls-files: convert show_ce_entry to take an indexBrandon Williams1-5/+6
2017-06-13ls-files: convert prune_cache to take an indexBrandon Williams1-7/+8
2017-06-13ls-files: convert ce_excluded to take an indexBrandon Williams1-4/+5
2017-06-13ls-files: convert show_ru_info to take an indexBrandon Williams1-4/+4
2017-06-13ls-files: convert show_other_files to take an indexBrandon Williams1-3/+4
2017-06-13ls-files: convert show_killed_files to take an indexBrandon Williams1-10/+11
2017-06-13ls-files: convert write_eolinfo to take an indexBrandon Williams1-7/+6
2017-06-13ls-files: convert overlay_tree_on_cache to take an indexBrandon Williams1-7/+8
2017-06-13tree: convert read_tree to take an index parameterBrandon Williams1-1/+1
2017-06-13convert: convert get_cached_convert_stats_ascii to take an indexBrandon Williams1-1/+2
2017-05-30Merge branch 'bw/pathspec-sans-the-index'Junio C Hamano1-6/+25
2017-05-29Merge branch 'bc/object-id'Junio C Hamano1-3/+3
2017-05-12ls-files: prevent prune_cache from overeagerly pruning submodulesBrandon Williams1-6/+25
2017-05-08tree: convert parse_tree_indirect to struct object_idbrian m. carlson1-1/+1
2017-05-08builtin/ls-files: convert overlay_tree_on_cache to object_idbrian m. carlson1-3/+3
2017-05-06dir: convert fill_directory to take an indexBrandon Williams1-1/+1
2017-05-06dir: convert is_excluded to take an indexBrandon Williams1-1/+1
2017-04-18ls-files: fix path used when recursing into submodulesJacob Keller1-1/+4
2017-04-17ls-files: fix recurse-submodules with nested submodulesJacob Keller1-0/+4
2017-03-17ls-files: fix bug when recursing with relative pathspecBrandon Williams1-12/+13
2017-03-17ls-files: fix typo in variable nameBrandon Williams1-8/+8
2017-02-13ls-files: move only kept cache entries in prune_cache()René Scharfe1-5/+4
2017-02-13ls-files: pass prefix length explicitly to prune_cache()René Scharfe1-5/+7
2016-10-26Merge branch 'bw/ls-files-recurse-submodules'Junio C Hamano1-40/+141
2016-10-10ls-files: add pathspec matching for submodulesBrandon Williams1-6/+21
2016-10-10ls-files: pass through safe options for --recurse-submodulesBrandon Williams1-3/+27
2016-10-10ls-files: optionally recurse into submodulesBrandon Williams1-38/+100
2016-09-07cache: convert struct cache_entry to use struct object_idbrian m. carlson1-1/+1
2016-07-26die("bug"): report bugs consistentlyJohannes Schindelin1-1/+2
2016-02-10Merge branch 'jk/options-cleanup'Junio C Hamano1-11/+3
2016-02-01apply, ls-files: simplify "-z" parsingJeff King1-11/+3
2016-01-18ls-files: add eol diagnosticsTorsten Bögershausen1-0/+21
2015-08-20ps_matched: xcalloc() takes nmemb and then element sizeJunio C Hamano1-1/+1
2015-03-26Merge branch 'jc/report-path-error-to-dir'Junio C Hamano1-43/+0
2015-03-24report_path_error(): move to dir.cJunio C Hamano1-43/+0
2015-01-14standardize usage info string formatAlex Henrie1-1/+1
2014-09-02grammofix in user-facing messagesAlex Henrie1-1/+1
2014-02-24pathspec: pass directory indicator to match_pathspec_item()Nguyễn Thái Ngọc Duy1-2/+3
2014-02-24pathspec: rename match_pathspec_depth() to match_pathspec()Nguyễn Thái Ngọc Duy1-2/+4
2014-02-24pathspec: convert some match_pathspec_depth() to dir_path_match()Nguyễn Thái Ngọc Duy1-1/+1
2013-09-11Merge branch 'jc/ls-files-killed-optim'Junio C Hamano1-0/+2
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-46/+29
2013-08-15ls-files -k: a directory only can be killed if the index has a non-directoryJunio C Hamano1-0/+2
2013-08-05Replace deprecated OPT_BOOLEAN by OPT_BOOLStefan Beller1-12/+12
2013-07-22Merge branch 'jx/clean-interactive'Junio C Hamano1-7/+11
2013-07-15remove init_pathspec() in favor of parse_pathspec()Nguyễn Thái Ngọc Duy1-6/+5
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-1/+1
2013-07-15convert report_path_error to take struct pathspecNguyễn Thái Ngọc Duy1-8/+11
2013-07-15ls-files: convert to use parse_pathspecNguyễn Thái Ngọc Duy1-33/+13
2013-07-15move struct pathspec and related functions to pathspec.[ch]Nguyễn Thái Ngọc Duy1-0/+1
2013-07-09Convert "struct cache_entry *" to "const ..." wherever possibleNguyễn Thái Ngọc Duy1-6/+6
2013-06-30Merge branch 'mh/ref-races'Junio C Hamano1-5/+7
2013-06-26write_name{_quoted_relative,}(): remove redundant parametersJiang Xin1-9/+8
2013-06-26quote_path_relative(): remove redundant parameterJiang Xin1-1/+1
2013-06-26quote.c: substitute path_relative with relative_pathJiang Xin1-2/+7
2013-06-20Extract a struct stat_data from cache_entryMichael Haggerty1-5/+7
2013-06-13use logical OR (||) instead of binary OR (|) in logical contextRené Scharfe1-4/+4
2013-04-15dir.c: replace is_path_excluded with now equivalent is_excluded APIKarsten Blees1-11/+4
2013-01-23Merge branch 'as/check-ignore'Junio C Hamano1-4/+11
2013-01-16clean.c, ls-files.c: respect encapsulation of exclude_list_groupsAdam Spiers1-5/+10
2013-01-10Merge branch 'as/dir-c-cleanup'Junio C Hamano1-1/+1
2013-01-06dir.c: keep track of where patterns came fromAdam Spiers1-2/+3
2013-01-06dir.c: use a single struct exclude_list per source of excludesAdam Spiers1-3/+5
2012-12-28dir.c: rename path_excluded() to is_path_excluded()Adam Spiers1-1/+1
2012-11-19pathspec: save the non-wildcard length partNguyễn Thái Ngọc Duy1-1/+1
2012-08-20i18n: ls-files: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-27/+27
2012-06-05path_excluded(): update API to less cache-entry centricJunio C Hamano1-2/+8
2012-06-03ls-files -i: pay attention to exclusion of leading pathsJunio C Hamano1-6/+11
2011-10-10Merge branch 'cb/common-prefix-unification'Junio C Hamano1-1/+1
2011-09-12rename pathspec_prefix() to common_prefix() and move to dir.[ch]Clemens Buchacher1-1/+1
2011-09-06remove prefix argument from pathspec_prefixClemens Buchacher1-1/+1
2011-08-23Merge branch 'cb/maint-ls-files-error-report'Junio C Hamano1-3/+7
2011-08-11ls-files: fix pathspec display on errorClemens Buchacher1-3/+7
2011-08-02commit: allow partial commits with relative pathsClemens Buchacher1-36/+2
2011-04-05pathspec: rename per-item field has_wildcard to use_wildcardJunio C Hamano1-1/+1
2011-03-25Convert read_tree{,_recursive} to support struct pathspecNguyễn Thái Ngọc Duy1-4/+5
2010-12-12Merge branch 'jn/git-cmd-h-bypass-setup'Junio C Hamano1-0/+3
2010-10-22ls-files -h: show usage even with corrupt indexNguyễn Thái Ngọc Duy1-0/+3
2010-10-08Use parentheses and `...' where appropriateŠtěpán Němec1-1/+1
2010-08-18Merge branch 'ar/string-list-foreach'Junio C Hamano1-23/+22
2010-08-02ls-files: learn a debugging dump formatThomas Rast1-0/+9
2010-07-05Convert the users of for_each_string_list to for_each_string_list_item macroAlex Riesen1-23/+22
2010-06-30Merge branch 'jp/string-list-api-cleanup'Junio C Hamano1-1/+1
2010-06-27string_list: Fix argument order for for_each_string_listJulian Phillips1-1/+1
2010-06-05ls-files: allow relative pathspecClemens Buchacher1-34/+41
2010-03-21ls: remove redundant logicErik Faye-Lund1-5/+2
2010-02-22Move 'builtin-*' into a 'builtin/' subdirectoryLinus Torvalds1-0/+606