aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/gc.c
AgeCommit message (Expand)AuthorFilesLines
2021-09-23Merge branch 'ab/gc-remove-unused-call'Junio C Hamano1-7/+1
2021-09-20Merge branch 'js/run-command-close-packs'Junio C Hamano1-12/+6
2021-09-20Merge branch 'lh/systemd-timers'Junio C Hamano1-71/+512
2021-09-12gc: remove unused launchctl_get_uid() callÆvar Arnfjörð Bjarmason1-7/+1
2021-09-10Merge branch 'ab/gc-log-rephrase'Junio C Hamano1-1/+1
2021-09-09Close object store closer to spawning child processesJohannes Schindelin1-12/+6
2021-09-08Merge branch 'js/maintenance-launchctl-fix'Junio C Hamano1-21/+70
2021-09-07maintenance: add support for systemd timers on LinuxLénaïc Huard1-0/+216
2021-09-07maintenance: `git maintenance run` learned `--scheduler=<scheduler>`Lénaïc Huard1-71/+294
2021-09-02gc: remove trailing dot from "gc.log" lineÆvar Arnfjörð Bjarmason1-1/+1
2021-08-24maintenance: skip bootout/bootstrap when plist is registeredDerrick Stolee1-9/+45
2021-08-24maintenance: create `launchctl` configuration using a lock fileJohannes Schindelin1-17/+30
2021-07-26Use a better name for the function interpolating pathsJohannes Schindelin1-1/+1
2021-05-12maintenance: fix two memory leaksLénaïc Huard1-2/+8
2021-04-16maintenance: respect remote.*.skipFetchAllDerrick Stolee1-0/+3
2021-04-16maintenance: use 'git fetch --prefetch'Derrick Stolee1-4/+3
2021-04-06maintenance: simplify prefetch logicDerrick Stolee1-25/+8
2021-02-23maintenance: fix incorrect `maintenance.repo` path with bare repositoryEric Sunshine1-17/+33
2021-02-09maintenance: incremental strategy runs pack-refs weeklyDerrick Stolee1-0/+2
2021-02-09maintenance: add pack-refs taskDerrick Stolee1-4/+17
2021-02-03Merge branch 'jk/peel-iterated-oid'Junio C Hamano1-1/+1
2021-02-03Merge branch 'ds/maintenance-prefetch-cleanup'Junio C Hamano1-0/+6
2021-01-25Merge branch 'tb/pack-revindex-api'Junio C Hamano1-1/+1
2021-01-25Merge branch 'ma/more-opaque-lock-file'Junio C Hamano1-4/+4
2021-01-21refs: switch peel_ref() to peel_iterated_oid()Jeff King1-1/+1
2021-01-20maintenance: set log.excludeDecoration durin prefetchDerrick Stolee1-0/+6
2021-01-15Merge branch 'ds/maintenance-part-4'Junio C Hamano1-27/+395
2021-01-13builtin/gc.c: guess the size of the revindexTaylor Blau1-1/+1
2021-01-06builtin/gc: don't peek into `struct lock_file`Martin Ågren1-3/+3
2021-01-05maintenance: use Windows scheduled tasksDerrick Stolee1-1/+167
2021-01-05maintenance: use launchctl on macOSDerrick Stolee1-1/+187
2020-12-21gc: fix handling of crontab magic markersMartin Ågren1-4/+3
2020-12-08Merge branch 'rs/maintenance-run-outside-repo'Junio C Hamano1-7/+0
2020-12-08Merge branch 'ds/maintenance-part-3'Junio C Hamano1-2/+3
2020-11-30Merge branch 'ab/gc-keep-base-option'Junio C Hamano1-4/+4
2020-11-30maintenance: fix SEGFAULT when no repositoryRafael Silva1-7/+0
2020-11-25maintenance: use 'git config --fixed-value'Derrick Stolee1-2/+3
2020-11-24maintenance: extract platform-specific schedulingDerrick Stolee1-27/+43
2020-11-21gc: rename keep_base_pack variable for --keep-largest-packÆvar Arnfjörð Bjarmason1-4/+4
2020-11-18gc: fix cast in compare_tasks_by_selection()René Scharfe1-4/+2
2020-11-18Merge branch 'ds/maintenance-part-3'Junio C Hamano1-6/+275
2020-11-11Merge branch 'rs/clear-commit-marks-in-repo'Junio C Hamano1-1/+1
2020-11-02Merge branch 'ds/maintenance-commit-graph-auto-fix'Junio C Hamano1-1/+11
2020-10-31object: allow clear_commit_marks_all to handle any repoRené Scharfe1-1/+1
2020-10-16maintenance: use 'incremental' strategy by defaultDerrick Stolee1-0/+10
2020-10-16maintenance: create maintenance.strategy configDerrick Stolee1-2/+26
2020-10-12maintenance: core.commitGraph=false prevents writesDerrick Stolee1-0/+4
2020-10-08maintenance: test commit-graph auto conditionDerrick Stolee1-1/+7
2020-09-25maintenance: add start/stop subcommandsDerrick Stolee1-0/+124
2020-09-25maintenance: add [un]register subcommandsDerrick Stolee1-1/+54
2020-09-25maintenance: add --schedule option and configDerrick Stolee1-3/+61
2020-09-25maintenance: add incremental-repack auto conditionDerrick Stolee1-0/+31
2020-09-25maintenance: auto-size incremental-repack batchDerrick Stolee1-1/+42
2020-09-25maintenance: add incremental-repack taskDerrick Stolee1-0/+76
2020-09-25maintenance: create auto condition for loose-objectsDerrick Stolee1-0/+30
2020-09-25maintenance: add loose-objects taskDerrick Stolee1-0/+97
2020-09-25maintenance: add prefetch taskDerrick Stolee1-0/+51
2020-09-17maintenance: add trace2 regions for task executionDerrick Stolee1-0/+2
2020-09-17maintenance: add auto condition for commit-graph taskDerrick Stolee1-0/+82
2020-09-17maintenance: use pointers to check --autoDerrick Stolee1-0/+16
2020-09-17maintenance: create maintenance.<task>.enabled configDerrick Stolee1-0/+19
2020-09-17maintenance: take a lock on the objects directoryDerrick Stolee1-0/+20
2020-09-17maintenance: add --task optionDerrick Stolee1-3/+63
2020-09-17maintenance: add commit-graph taskDerrick Stolee1-0/+30
2020-09-17maintenance: initialize task arrayDerrick Stolee1-1/+42
2020-09-17maintenance: add --quiet optionDerrick Stolee1-1/+10
2020-09-17maintenance: create basic maintenance runnerDerrick Stolee1-0/+58
2020-07-30strvec: rename struct fieldsJeff King1-12/+12
2020-07-28strvec: fix indentation in renamed callsJeff King1-1/+1
2020-07-28strvec: convert builtin/ callers away from argv_array nameJeff King1-25/+25
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-02-04commit-graph.h: store an odb in 'struct write_commit_graph_context'Taylor Blau1-1/+1
2019-11-10Fix spelling errors in code commentsElijah Newren1-2/+2
2019-09-18Merge branch 'cc/multi-promisor'Junio C Hamano1-1/+2
2019-09-09Merge branch 'ds/feature-macros'Junio C Hamano1-7/+5
2019-08-13repo-settings: consolidate some config settingsDerrick Stolee1-7/+5
2019-08-05commit-graph: turn a group of write-related macro flags into an enumSZEDER Gábor1-1/+1
2019-07-19Merge branch 'ds/commit-graph-incremental'Junio C Hamano1-1/+2
2019-07-09Merge branch 'ds/close-object-store'Junio C Hamano1-2/+2
2019-07-09Merge branch 'ds/commit-graph-write-refactor'Junio C Hamano1-3/+4
2019-06-25Use promisor_remote_get_direct() and has_promisor_remote()Christian Couder1-1/+2
2019-06-19commit-graph: create options for split filesDerrick Stolee1-1/+2
2019-06-12packfile: rename close_all_packs to close_object_storeDerrick Stolee1-2/+2
2019-06-12commit-graph: collapse parameters into flagsDerrick Stolee1-2/+2
2019-06-12commit-graph: return with errors during writeDerrick Stolee1-3/+4
2019-04-01gc: handle & check gc.reflogExpire configÆvar Arnfjörð Bjarmason1-0/+17
2019-03-18gc: refactor a "call me once" patternÆvar Arnfjörð Bjarmason1-3/+9
2019-03-18gc: convert to using the_hash_algoÆvar Arnfjörð Bjarmason1-2/+3
2019-03-14gc: remove redundant check for gc_auto_thresholdÆvar Arnfjörð Bjarmason1-3/+0
2019-01-18Merge branch 'js/gc-repack-close-before-remove'Junio C Hamano1-1/+3
2019-01-11gc/repack: release packs when neededJohannes Schindelin1-1/+3
2018-12-09Indent code with TABsNguyễn Thái Ngọc Duy1-1/+1
2018-10-16Merge branch 'jn/gc-auto'Junio C Hamano1-6/+27
2018-10-16Merge branch 'jn/gc-auto-prep'Junio C Hamano1-22/+18
2018-10-16Merge branch 'ab/commit-graph-progress'Junio C Hamano1-1/+2
2018-09-20gc: fix regression in 7b0f229222 impacting --quietÆvar Arnfjörð Bjarmason1-1/+1
2018-09-17commit-graph write: add progress outputÆvar Arnfjörð Bjarmason1-1/+2
2018-08-20treewide: use get_all_packsDerrick Stolee1-2/+2
2018-08-02Merge branch 'kg/gc-auto-windows-workaround'Junio C Hamano1-0/+1
2018-07-17gc: do not return error for prior errors in daemonized modeJonathan Nieder1-6/+27
2018-07-17gc: exit with status 128 on failureJonathan Nieder1-21/+14
2018-07-17gc: improve handling of errors reading gc.logJonathan Nieder1-3/+6
2018-07-09gc --auto: release pack files before auto packingKim Gybels1-0/+1
2018-06-27gc: automatically write commit-graph filesDerrick Stolee1-0/+6
2018-05-30Merge branch 'ma/lockfile-cleanup'Junio C Hamano1-1/+1
2018-05-23Merge branch 'nd/repack-keep-pack'Junio C Hamano1-6/+159
2018-05-10lock_file: make function-local locks non-staticMartin Ågren1-1/+1
2018-05-08Merge branch 'jc/parseopt-expiry-errors'Junio C Hamano1-1/+5
2018-04-23parseopt: handle malformed --expire arguments more nicelyJunio C Hamano1-0/+4
2018-04-23gc: do not upcase error message shown with die()Junio C Hamano1-1/+1
2018-04-16gc --auto: exclude base pack if not enough mem to "repack -ad"Nguyễn Thái Ngọc Duy1-1/+97
2018-04-16gc: handle a corner case in gc.bigPackThresholdNguyễn Thái Ngọc Duy1-1/+7
2018-04-16gc: add gc.bigPackThreshold configNguyễn Thái Ngọc Duy1-6/+20
2018-04-16gc: add --keep-largest-pack optionNguyễn Thái Ngọc Duy1-4/+41
2018-04-11Merge branch 'sb/packfiles-in-repository'Junio C Hamano1-2/+1
2018-04-11Merge branch 'sb/object-store'Junio C Hamano1-1/+3
2018-03-26packfile: keep prepare_packed_git() privateNguyễn Thái Ngọc Duy1-1/+0
2018-03-26packfile: add repository argument to reprepare_packed_gitStefan Beller1-1/+1
2018-03-26packfile: add repository argument to prepare_packed_gitStefan Beller1-1/+1
2018-03-26object-store: move packed_git and packed_git_mru to object storeStefan Beller1-1/+3
2018-03-14Merge branch 'nd/parseopt-completion'Junio C Hamano1-2/+5
2018-02-09completion: use __gitcomp_builtin in _git_gcNguyễn Thái Ngọc Duy1-2/+5
2017-12-08gc: do not repack promisor packfilesJonathan Tan1-0/+3
2017-09-25Merge branch 'aw/gc-lockfile-fscanf-fix'Junio C Hamano1-1/+1
2017-09-17gc: call fscanf() with %<len>s, not %<len>c, when reading hostnameJunio C Hamano1-1/+1
2017-09-06tempfile: auto-allocate tempfiles on heapJeff King1-4/+4
2017-08-23pack: move {,re}prepare_packed_git and approximate_object_countJonathan Tan1-0/+1
2017-07-18Merge branch 'jk/gc-pre-detach-under-hook'Junio C Hamano1-0/+4
2017-07-12Merge branch 'rs/use-div-round-up'Junio C Hamano1-1/+1
2017-07-12gc: run pre-detach operations under lockJeff King1-0/+4
2017-07-10use DIV_ROUND_UPRené Scharfe1-1/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-05-16Merge branch 'js/larger-timestamps'Junio C Hamano1-1/+1
2017-04-27timestamp_t: a new data type for timestampsJohannes Schindelin1-1/+1
2017-04-23Merge branch 'dt/xgethostname-nul-termination'Junio C Hamano1-4/+8
2017-04-18xgethostname: handle long hostnamesDavid Turner1-1/+1
2017-04-18use HOST_NAME_MAX to size buffers for gethostname(2)René Scharfe1-3/+7
2017-03-30gc: replace local buffer with git_pathJeff King1-7/+1
2017-03-17Merge branch 'cc/split-index-config'Junio C Hamano1-14/+3
2017-03-01config: add git_config_get_expiry() from gc.cChristian Couder1-13/+2
2017-02-13gc: ignore old gc.log filesDavid Turner1-7/+50
2016-12-29auto gc: don't write bitmaps for incremental repacksDavid Turner1-1/+8
2016-09-29Merge branch 'jk/reduce-gc-aggressive-depth' into maintJunio C Hamano1-1/+1
2016-09-21Merge branch 'jk/reduce-gc-aggressive-depth'Junio C Hamano1-1/+1
2016-08-11gc: default aggressive depth to 50Jeff King1-1/+1
2016-07-28Merge branch 'ew/gc-auto-pack-limit-fix' into maintJunio C Hamano1-1/+1
2016-07-13Merge branch 'ew/gc-auto-pack-limit-fix'Junio C Hamano1-1/+1
2016-06-27gc: fix off-by-one error with gc.autoPackLimitEric Wong1-1/+1
2015-11-20Merge branch 'dk/gc-idx-wo-pack'Jeff King1-0/+21
2015-11-04gc: remove garbage .idx files from pack dirDoug Kelly1-0/+21
2015-10-30Merge branch 'js/misc-fixes'Junio C Hamano1-1/+1
2015-10-26Merge branch 'jk/repository-extension'Junio C Hamano1-9/+11
2015-10-26Correct fscanf formatting string for I64u valuesWaldek Maleska1-1/+1
2015-10-20Merge branch 'jk/war-on-sprintf'Junio C Hamano1-1/+1
2015-10-15Merge branch 'nd/gc-auto-background-fix'Junio C Hamano1-1/+55
2015-09-25convert trivial sprintf / strcpy calls to xsnprintfJeff King1-1/+1
2015-09-21gc: save log from daemonized gc --auto and print it next timeNguyễn Thái Ngọc Duy1-1/+55
2015-08-25Merge branch 'mh/tempfile'Junio C Hamano1-22/+10
2015-08-12gc: use tempfile module to handle gc.pid fileMichael Haggerty1-20/+5
2015-08-12lock_repo_for_gc(): compute the path to "gc.pid" only onceMichael Haggerty1-3/+6
2015-08-12Merge branch 'es/worktree-add'Junio C Hamano1-1/+1
2015-07-20config: rename "gc.pruneWorktreesExpire" to "gc.worktreePruneExpire"Eric Sunshine1-1/+1
2015-07-13Merge branch 'nd/multiple-work-trees'Junio C Hamano1-1/+1
2015-06-29worktree: new place for "git prune --worktrees"Nguyễn Thái Ngọc Duy1-1/+1
2015-06-24introduce "preciousObjects" repository extensionJeff King1-9/+11
2015-05-11Merge branch 'nd/multiple-work-trees'Junio C Hamano1-11/+23
2015-01-14standardize usage info string formatAlex Henrie1-1/+1
2014-12-01gc: support prune --worktreesNguyễn Thái Ngọc Duy1-0/+10
2014-12-01gc: factor out gc.pruneexpire parsing codeNguyễn Thái Ngọc Duy1-10/+12
2014-12-01gc: style change -- no SP before closing parenthesisNguyễn Thái Ngọc Duy1-1/+1
2014-10-01lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty1-1/+1
2014-08-07builtin/gc.c: replace `git_config()` with `git_config_get_*()` familyTanay Abhra1-31/+20
2014-06-16Merge branch 'nd/daemonize-gc'Junio C Hamano1-6/+20
2014-05-27gc --auto: do not lock refs in the backgroundNguyễn Thái Ngọc Duy1-6/+20
2014-04-03Merge branch 'nd/gc-aggressive'Junio C Hamano1-1/+7
2014-03-31gc --aggressive: make --depth configurableNguyễn Thái Ngọc Duy1-1/+7
2014-03-28Merge branch 'bp/commit-p-editor'Junio C Hamano1-1/+1
2014-03-18commit: fix patch hunk editing with "commit -p -m"Benoit Pierre1-1/+1
2014-03-05Merge branch 'nd/daemonize-gc'Junio C Hamano1-5/+18
2014-02-27Merge branch 'ep/varscope'Junio C Hamano1-2/+3
2014-02-10gc: config option for running --auto in backgroundNguyễn Thái Ngọc Duy1-5/+18
2014-01-31builtin/gc.c: reduce scope of variablesElia Pinto1-2/+3
2014-01-17Merge branch 'nd/shallow-clone'Junio C Hamano1-0/+1
2014-01-02gc: notice gc processes run by other usersKyle J. McKay1-1/+1
2013-12-10prune: clean .git/shallow after pruning objectsNguyễn Thái Ngọc Duy1-0/+1
2013-10-30Merge branch 'nd/gc-lock-against-each-other'Junio C Hamano1-0/+24
2013-10-18gc: remove gc.pid file at end of executionJonathan Nieder1-0/+24
2013-09-04Merge branch 'sb/parseopt-boolean-removal'Junio C Hamano1-2/+2
2013-08-09gc: reject if another gc is running, unless --force is givenNguyễn Thái Ngọc Duy1-0/+67
2013-08-05Replace deprecated OPT_BOOLEAN by OPT_BOOLStefan Beller1-2/+2
2012-09-27silence git gc --auto --quiet outputTobias Ulmer1-3/+1
2012-08-20i18n: gc: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-6/+6
2012-04-18gc: use argv-array for sub-commandsJeff King1-45/+33
2012-04-11gc: do not explode objects which will be immediately prunedJeff King1-8/+15
2011-11-07prune: handle --progress/no-progressJeff King1-1/+3
2011-06-19builtin/gc.c: add missing newline in messageAndreas Schwab1-1/+1
2011-03-09i18n: git-gc "Auto packing the repository" messageÆvar Arnfjörð Bjarmason1-7/+7
2011-03-09i18n: git-gc basic messagesÆvar Arnfjörð Bjarmason1-5/+5
2010-12-12Merge branch 'jn/git-cmd-h-bypass-setup'Junio C Hamano1-0/+3