aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/clean.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-29Merge branch 'jk/color-variable-fixes'Junio C Hamano1-1/+1
2025-09-16color: use git_colorbool enum type to store colorboolsJeff King1-1/+1
2025-09-16color: use GIT_COLOR_* instead of numeric constantsJeff King1-1/+1
2025-08-21Merge branch 'jc/strbuf-split'Junio C Hamano1-38/+36
2025-08-02clean: do not use strbuf_split*() [part 2]Junio C Hamano1-9/+11
2025-08-02clean: do not pass the whole structure when it is not necessaryJunio C Hamano1-3/+3
2025-08-02clean: do not use strbuf_split*() [part 1]Junio C Hamano1-27/+23
2025-08-02clean: do not pass strbuf by valueJunio C Hamano1-5/+5
2025-07-23config: move Git config parsing into "environment.c"Patrick Steinhardt1-0/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-1/+1
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+3
2024-09-13builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.hJohn Cai1-2/+1
2024-09-13builtin: add a repository parameter for builtin functionsJohn Cai1-1/+4
2024-04-18builtin: stop using `the_index`Patrick Steinhardt1-4/+3
2024-03-04clean: further clean-up of implementation around "--force"Junio C Hamano1-7/+2
2024-03-03clean: improve -n and -f implementation and documentationSergey Organov1-14/+9
2023-12-09clean: factorize incompatibility messageRené Scharfe1-1/+1
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-3/+6
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-2/+3
2023-06-28config: inline git_color_default_configGlen Choo1-2/+4
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-1/+0
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-04-24hash-ll.h: split out of hash.h to remove dependency on repository.hElijah Newren1-0/+1
2023-03-21setup.h: move declarations for setup.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-22Merge branch 'ab/various-leak-fixes'Junio C Hamano1-0/+1
2023-02-06various: add missing clear_pathspec(), fix leaksÆvar Arnfjörð Bjarmason1-0/+1
2023-02-06docs & comments: replace mentions of "git-add--interactive.perl"Ævar Arnfjörð Bjarmason1-1/+1
2022-11-21cocci: apply "pending" index-compatibility to some "builtin/*.c"Ævar Arnfjörð Bjarmason1-2/+2
2022-11-21cocci & cache.h: remove rarely used "the_index" compat macrosÆvar Arnfjörð Bjarmason1-1/+1
2022-10-13doc txt & -h consistency: use "[<label>...]" for "zero or more"Ævar Arnfjörð Bjarmason1-1/+1
2022-10-13doc txt & -h consistency: fix mismatching labelsÆvar Arnfjörð Bjarmason1-1/+1
2022-02-17Merge branch 'vd/sparse-clean-etc'Junio C Hamano1-0/+3
2022-01-13clean: integrate with sparse indexVictoria Dye1-0/+3
2021-12-09clean: do not attempt to remove startup_info->original_cwdElijah Newren1-9/+35
2021-07-01dir.[ch]: replace dir_init() with DIR_INITÆvar Arnfjörð Bjarmason1-4/+2
2021-05-20Merge branch 'en/dir-traversal'Junio C Hamano1-3/+1
2021-05-14Merge branch 'mt/clean-clean'Junio C Hamano1-3/+1
2021-05-13dir: introduce readdir_skip_dot_and_dotdot() helperElijah Newren1-3/+1
2021-05-07clean: remove unnecessary variableMatheus Tavares1-3/+1
2021-03-13use CALLOC_ARRAYRené Scharfe1-1/+1
2020-09-10quote_path: give flags parameter to quote_path()Junio C Hamano1-11/+11
2020-09-10quote_path: rename quote_path_relative() to quote_path()Junio C Hamano1-11/+11
2020-08-18dir: fix problematic API to avoid memory leaksElijah Newren1-4/+4
2020-08-18dir: make clear_directory() free all relevant memoryElijah Newren1-5/+1
2020-06-12clean: optimize and document cases where we recurse into subdirectoriesElijah Newren1-2/+31
2020-06-12clean: consolidate handling of ignored parametersElijah Newren1-9/+7
2020-06-12dir, clean: avoid disallowed behaviorElijah Newren1-1/+1
2020-05-05Merge branch 'dl/opt-callback-cleanup'Junio C Hamano1-2/+2
2020-04-29Merge branch 'en/fill-directory-exponential'Junio C Hamano1-6/+0
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-2/+2
2020-04-10interactive: refactor code asking the user for interactive inputJohannes Schindelin1-10/+4
2020-04-01Fix error-prone fill_directory() API; make it only return matchesElijah Newren1-6/+0
2019-10-11Merge branch 'en/clean-nested-with-ignored'Junio C Hamano1-2/+13
2019-09-30Merge branch 'ds/include-exclude'Junio C Hamano1-6/+6
2019-09-17clean: fix theoretical path corruptionElijah Newren1-1/+1
2019-09-17clean: rewrap overly long lineElijah Newren1-1/+2
2019-09-17clean: avoid removing untracked files in a nested git repositoryElijah Newren1-0/+2
2019-09-17clean: disambiguate the definition of -dElijah Newren1-0/+8
2019-09-05treewide: rename 'exclude' methods to 'pattern'Derrick Stolee1-4/+4
2019-09-05treewide: rename 'struct exclude_list' to 'struct pattern_list'Derrick Stolee1-6/+6
2019-07-19clean: show an error message when the path is too longJohannes Schindelin1-1/+2
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-0/+1
2018-11-06assert NOARG/NONEG behavior of parse-options callbacksJeff King1-0/+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-29help: add --config to list all available configNguyễn Thái Ngọc Duy1-0/+3
2018-05-29Add and use generic name->id mapping code for color slot parsingNguyễn Thái Ngọc Duy1-18/+10
2018-02-09completion: use __gitcomp_builtin in _git_cleanNguyễn Thái Ngọc Duy1-1/+1
2018-02-09parse-options: let OPT__FORCE take optional flags argumentNguyễn Thái Ngọc Duy1-1/+1
2017-10-18Merge branch 'jk/ref-filter-colors-fix'Junio C Hamano1-1/+2
2017-10-17Revert "color: check color.ui in git_default_config()"Jeff King1-1/+2
2017-09-07clean: release strbuf after use in remove_dirs()Rene Scharfe1-2/+5
2017-08-11Merge branch 'jk/c99'Junio C Hamano1-9/+10
2017-07-18clean.c: use designated initializerJunio C Hamano1-9/+10
2017-07-13color: check color.ui in git_default_config()Jeff King1-2/+1
2017-06-24Merge branch 'ab/free-and-null'Junio C Hamano1-4/+2
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-16coccinelle: make use of the "type" FREE_AND_NULL() ruleÆvar Arnfjörð Bjarmason1-4/+2
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-02Merge branch 'sl/clean-d-ignored-fix'Junio C Hamano1-0/+42
2017-05-24clean: teach clean -d to preserve ignored pathsSamuel Lijin1-0/+42
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-02-27Merge branch 'nd/clean-preserve-errno-in-warning'Junio C Hamano1-4/+12
2017-02-16clean: use warning_errno() when appropriateNguyễn Thái Ngọc Duy1-4/+12
2016-12-14i18n: clean.c: match string with git-add--interactive.perlVasco Almeida1-5/+5
2016-02-26Merge branch 'jk/tighten-alloc'Junio C Hamano1-2/+2
2016-02-22use st_add and st_mult for allocation size computationJeff King1-1/+1
2016-02-22convert trivial cases to ALLOC_ARRAYJeff King1-1/+1
2016-02-03Merge branch 'jk/ref-cache-non-repository-optim'Junio C Hamano1-25/+1
2016-01-25clean: make is_git_repository a public functionJeff King1-25/+1
2016-01-15strbuf: introduce strbuf_getline_{lf,nul}()Junio C Hamano1-3/+3
2015-10-05use strbuf_complete to conditionally append slashJeff King1-4/+2
2015-06-15clean: improve performance when removing lots of directoriesErik Elfström1-4/+26
2015-06-01Merge branch 'rs/janitorial'Junio C Hamano1-2/+0
2015-06-01Merge branch 'dt/clean-pathspec-filter-then-lstat'Junio C Hamano1-3/+3
2015-05-20clean: remove unused variable bufRené Scharfe1-2/+0
2015-05-18clean: only lstat files in pathspecDavid Turner1-3/+3
2015-03-06Merge branch 'ja/clean-confirm-i18n'Junio C Hamano1-1/+2
2015-03-02Add hint interactive cleaningJean-Noel Avila1-1/+2
2014-12-22clean: typofixAlexander Kuleshov1-1/+1
2014-10-20Merge branch 'jn/parse-config-slot'Junio C Hamano1-2/+1
2014-10-14color_parse: do not mention variable name in error messageJeff King1-2/+1
2014-10-07use skip_prefix() to avoid more magic numbersRené Scharfe1-3/+4
2014-09-09Merge branch 'rs/clean-menu-item-defn'Junio C Hamano1-1/+1
2014-08-18clean: use f(void) instead of f() to declare a pointer to a function without ...René Scharfe1-1/+1
2014-07-21use xcalloc() to allocate zero-initialized memoryRené Scharfe1-2/+1
2014-07-02Merge branch 'maint-1.8.5' into maintJunio C Hamano1-1/+1
2014-07-02enums: remove trailing ',' after last item in enumRonnie Sahlberg1-1/+1
2014-04-08Merge branch 'jl/nor-or-nand-and'Junio C Hamano1-3/+3
2014-03-31code and test: fix misuses of "nor"Justin Lebar1-3/+3
2014-03-18Merge branch 'jk/clean-d-pathspec' into maintJunio C Hamano1-11/+9
2014-03-18Merge branch 'jk/clean-d-pathspec'Junio C Hamano1-11/+9
2014-03-11clean: simplify dir/not-dir logicJeff King1-9/+6
2014-03-11clean: respect pathspecs with "-d"Jeff King1-2/+3
2014-02-27Merge branch 'ep/varscope'Junio C Hamano1-1/+2
2014-02-24clean: use cache_name_is_other()Nguyễn Thái Ngọc Duy1-19/+2
2014-02-24clean: replace match_pathspec() with dir_path_match()Nguyễn Thái Ngọc Duy1-2/+1
2014-02-24pathspec: pass directory indicator to match_pathspec_item()Nguyễn Thái Ngọc Duy1-1/+1
2014-02-24pathspec: rename match_pathspec_depth() to match_pathspec()Nguyễn Thái Ngọc Duy1-2/+2
2014-01-31builtin/clean.c: reduce scope of variableElia Pinto1-1/+2
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-2/+2
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-14/+10
2013-09-04Merge branch 'sb/parseopt-boolean-removal'Junio C Hamano1-3/+3
2013-08-05Replace deprecated OPT_BOOLEAN by OPT_BOOLStefan Beller1-3/+3
2013-08-01Merge branch 'jx/clean-interactive'Junio C Hamano1-28/+52
2013-07-24git-clean: implement partial matching for selectionJiang Xin1-28/+52
2013-07-22Merge branch 'jx/clean-interactive'Junio C Hamano1-31/+747
2013-07-15convert {read,fill}_directory to take struct pathspecNguyễn Thái Ngọc Duy1-1/+1
2013-07-15clean: convert to use parse_pathspecNguyễn Thái Ngọc Duy1-7/+10
2013-07-15clean: remove unused variable "seen"Nguyễn Thái Ngọc Duy1-9/+2
2013-07-09Convert "struct cache_entry *" to "const ..." wherever possibleNguyễn Thái Ngọc Duy1-1/+1
2013-06-26git-clean: use a git-add-interactive compatible UIJiang Xin1-29/+427
2013-06-26git-clean: add colors to interactive git-cleanJiang Xin1-1/+72
2013-06-26git-clean: show items of del_list in columnsJiang Xin1-9/+40
2013-06-26git-clean: add ask each interactive actionJiang Xin1-0/+36
2013-06-26git-clean: add support for -i/--interactiveJiang Xin1-5/+52
2013-06-26git-clean: add select by numbers interactive actionJiang Xin1-0/+39
2013-06-26git-clean: refactor git-clean into two phasesJiang Xin1-19/+45
2013-06-26git-clean: add filter by pattern interactive actionJiang Xin1-0/+68
2013-06-26quote_path_relative(): remove redundant parameterJiang Xin1-9/+9
2013-01-23Merge branch 'as/check-ignore'Junio C Hamano1-2/+3
2013-01-16clean.c, ls-files.c: respect encapsulation of exclude_list_groupsAdam Spiers1-3/+3
2013-01-14git-clean: Display more accurate delete messagesZoltan Klinger1-29/+125
2013-01-06dir.c: keep track of where patterns came fromAdam Spiers1-2/+2
2013-01-06dir.c: use a single struct exclude_list per source of excludesAdam Spiers1-1/+2
2012-08-20i18n: clean: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-9/+9
2011-08-28Documentation: clarify "git clean -e <pattern>"Junio C Hamano1-2/+3
2011-03-09i18n: git-clean clean.requireForce messagesÆvar Arnfjörð Bjarmason1-3/+8
2011-03-09i18n: git-clean basic messagesÆvar Arnfjörð Bjarmason1-10/+10
2010-11-24Merge branch 'rs/opt-help-text'Junio C Hamano1-3/+3
2010-11-17clean: remove redundant variable baselenNguyễn Thái Ngọc Duy1-2/+2
2010-11-16clean: avoid quoting twiceNguyễn Thái Ngọc Duy1-2/+2
2010-11-15Describe various forms of "be quiet" using OPT__QUIETJonathan Nieder1-1/+1
2010-11-15add OPT__FORCERené Scharfe1-1/+1
2010-11-15add description parameter to OPT__QUIETRené Scharfe1-1/+1
2010-11-15add description parameter to OPT__DRY_RUNRené Scharfe1-1/+1
2010-09-06builtin/clean.c: Use STRING_LIST_INIT_NODUP.Thiago Farina1-1/+1
2010-07-20Add -e/--exclude to git-clean.Jared Hance1-1/+16
2010-02-22Move 'builtin-*' into a 'builtin/' subdirectoryLinus Torvalds1-0/+171