aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/fsck.c
AgeCommit message (Expand)AuthorFilesLines
13 dayscocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-3/+8
2024-02-21refs: drop unused params from the reflog iterator callbackPatrick Steinhardt1-3/+1
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-08-19fsck: use enum object_type for fsck_walk callbackJeff King1-1/+1
2023-07-25Merge branch 'jk/unused-parameter'Junio C Hamano1-5/+5
2023-07-18Merge branch 'tb/fsck-no-progress'Junio C Hamano1-0/+8
2023-07-13fsck: mark unused parameters in various fsck callbacksJeff King1-5/+5
2023-07-10fsck: suppress MIDX output with `--no-progress`Taylor Blau1-0/+4
2023-07-10fsck: suppress commit-graph output with `--no-progress`Taylor Blau1-0/+4
2023-07-08Merge branch 'jk/fsck-indices-in-worktrees'Junio C Hamano1-2/+2
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-2/+4
2023-06-29fsck: avoid misleading variable nameEric Sunshine1-2/+2
2023-06-22Merge branch 'ds/disable-replace-refs'Junio C Hamano1-1/+1
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
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-06-21sparse-index.h: move declarations for sparse-index.c from cache.hElijah Newren1-0/+1
2023-06-12repository: create disable_replace_refs()Derrick Stolee1-1/+1
2023-05-02fsck: use local repositoryDerrick Stolee1-3/+3
2023-05-02fsck: verify checksums of all .bitmap filesDerrick Stolee1-0/+4
2023-04-27Merge branch 'ds/fsck-pack-revindex'Junio C Hamano1-0/+36
2023-04-17fsck: validate .rev file headerDerrick Stolee1-2/+8
2023-04-17fsck: create scaffolding for rev-index checksDerrick Stolee1-0/+30
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+1
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-1/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-1/+1
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-17Merge branch 'jk/unused-post-2.39-part2'Junio C Hamano1-12/+13
2023-03-17Merge branch 'en/header-cleanup'Junio C Hamano1-0/+2
2023-02-27fsck: check even zero-entry index filesJeff King1-3/+2
2023-02-24fsck: mention file path for index errorsJeff King1-15/+27
2023-02-24fsck: check index files in all worktreesJeff King1-2/+16
2023-02-24fsck: factor out index fsckJeff King1-24/+30
2023-02-24for_each_object: mark unused callback parametersJeff King1-12/+13
2023-02-23replace-object.h: move read_replace_refs declaration from cache.h to hereElijah Newren1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2022-11-21cocci: apply "pending" index-compatibility to some "builtin/*.c"Ævar Arnfjörð Bjarmason1-2/+2
2022-11-21cocci & cache.h: apply variable section of "pending" index-compatibilityÆvar Arnfjörð Bjarmason1-6/+6
2022-10-28Merge branch 'ab/doc-synopsis-and-cmd-usage'Junio C Hamano1-1/+4
2022-10-13doc txt & -h consistency: add missing optionsÆvar Arnfjörð Bjarmason1-1/+4
2022-10-10Merge branch 'jk/fsck-on-diet'Junio C Hamano1-3/+3
2022-09-22parse_object_buffer(): respect save_commit_bufferJeff King1-3/+0
2022-09-22fsck: turn off save_commit_bufferJeff King1-0/+1
2022-09-22fsck: free tree buffers after walking unreachable objectsJeff King1-0/+2
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-6/+6
2022-08-19refs: mark unused reflog callback parametersJeff King1-2/+3
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-3/+4
2022-07-11fsck: do not dereference NULL while checking resolve-undo dataJunio C Hamano1-0/+1
2022-06-09revision: mark blobs needed for resolve-undo as reachableJunio C Hamano1-0/+38
2021-11-25run-command API users: use strvec_pushl(), not argv constructionÆvar Arnfjörð Bjarmason1-8/+4
2021-11-12Merge branch 'ab/fsck-unexpected-type'Junio C Hamano1-1/+2
2021-11-11object-file: free(*contents) only in read_loose_object() callerÆvar Arnfjörð Bjarmason1-1/+2
2021-11-01Merge branch 'gc/use-repo-settings'Junio C Hamano1-2/+3
2021-10-25Merge branch 'ab/fsck-unexpected-type'Junio C Hamano1-6/+38
2021-10-15fsck: verify multi-pack-index when implictly enabledGlen Choo1-1/+1
2021-10-15fsck: verify commit graph when implicitly enabledGlen Choo1-1/+2
2021-10-01fsck: report invalid object type-path combinationsÆvar Arnfjörð Bjarmason1-4/+11
2021-10-01fsck: don't hard die on invalid object typesÆvar Arnfjörð Bjarmason1-6/+31
2021-06-02Merge branch 'ab/fsck-api-cleanup'Junio C Hamano1-1/+2
2021-06-02builtin/fsck.c: don't conflate "int" and "enum" in callbackÆvar Arnfjörð Bjarmason1-1/+2
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-0/+2
2021-04-14fsck: ensure full indexDerrick Stolee1-0/+2
2021-04-13lookup_unknown_object(): take a repository argumentJeff King1-1/+1
2021-03-28fsck.c: pass along the fsck_msg_id in the fsck_error callbackÆvar Arnfjörð Bjarmason1-1/+3
2021-03-28fsck.h: move FSCK_{FATAL,INFO,ERROR,WARN,IGNORE} into an enumÆvar Arnfjörð Bjarmason1-1/+1
2021-03-28fsck.h: use "enum object_type" instead of "int"Ævar Arnfjörð Bjarmason1-1/+2
2021-03-17fsck.c: refactor and rename common config callbackÆvar Arnfjörð Bjarmason1-6/+1
2021-01-05fsck: make fsck_config() re-usableÆvar Arnfjörð Bjarmason1-19/+1
2020-08-06fsck: do not lazy fetch known non-promisor objectJonathan Tan1-1/+1
2020-07-06Merge branch 'es/get-worktrees-unsort'Junio C Hamano1-1/+1
2020-06-22worktree: drop get_worktrees() unused 'flags' argumentEric Sunshine1-1/+1
2020-06-17object: drop parsed_object_pool->commit_countAbhishek Kumar1-1/+1
2020-05-24Merge branch 'ds/multi-pack-verify'Junio C Hamano1-1/+2
2020-05-19fsck: use ERROR_MULTI_PACK_INDEXDerrick Stolee1-1/+2
2019-10-28fsck: only provide oid/type in fsck_error callbackJeff King1-7/+10
2019-10-28fsck: don't require object structs for display functionsJeff King1-32/+37
2019-10-28fsck: use oids rather than objects for object_name APIJeff King1-6/+6
2019-10-28fsck: unify object-name codeJeff King1-37/+13
2019-06-20object: convert lookup_object() to use object_idJeff King1-3/+3
2019-06-20object: convert lookup_unknown_object() to use object_idJeff King1-1/+1
2019-03-20Merge branch 'jk/fsck-doc'Junio C Hamano1-0/+62
2019-03-05fsck: always compute USED flags for unreachable objectsJeff King1-0/+62
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-0/+1
2019-02-05Merge branch 'sb/more-repo-in-api'Junio C Hamano1-1/+2
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-0/+1
2019-01-04Merge branch 'nd/the-index'Junio C Hamano1-1/+2
2019-01-04Merge branch 'jk/loose-object-cache'Junio C Hamano1-22/+13
2019-01-04Merge branch 'nd/i18n'Junio C Hamano1-68/+92
2018-12-28commit: prepare free_commit_buffer and release_commit_memory for any repoStefan Beller1-1/+2
2018-11-13Merge branch 'nd/per-worktree-ref-iteration'Junio C Hamano1-21/+47
2018-11-13sha1-file: use an object_directory for the main object dirJeff King1-18/+3
2018-11-13rename "alternate_object_database" to "object_directory"Jeff King1-8/+8
2018-11-13fsck: do not reuse child_process structsJeff King1-0/+6
2018-11-12pack-check.c: remove the_repository referencesNguyễn Thái Ngọc Duy1-1/+2
2018-11-12fsck: mark strings for translationNguyễn Thái Ngọc Duy1-49/+57
2018-11-12fsck: reduce word legos to help i18nNguyễn Thái Ngọc Duy1-25/+40
2018-10-22fsck: check HEAD and reflog from other worktreesNguyễn Thái Ngọc Duy1-17/+38
2018-10-22fsck: move fsck_head_link() to get_default_heads() to avoid some globalsElijah Newren1-11/+16
2018-09-17fsck: verify multi-pack-indexDerrick Stolee1-0/+18
2018-08-20treewide: use get_all_packsDerrick Stolee1-2/+2
2018-08-15Merge branch 'jk/core-use-replace-refs'Junio C Hamano1-1/+1
2018-07-18check_replace_refs: rename to read_replace_refsJeff King1-1/+1
2018-07-17commit-graph: add repo arg to graph readersJonathan Tan1-1/+1
2018-07-17Merge branch 'ds/commit-graph-fsck' into jt/commit-graph-per-object-storeJunio C Hamano1-0/+21
2018-06-29blob: add repository argument to lookup_blobStefan Beller1-1/+2
2018-06-29object: add repository argument to object_as_typeStefan Beller1-1/+1
2018-06-29object: add repository argument to parse_object_bufferStefan Beller1-2/+5
2018-06-29object: add repository argument to lookup_objectStefan Beller1-2/+3
2018-06-29object: add repository argument to parse_objectStefan Beller1-2/+2
2018-06-27fsck: verify commit-graphDerrick Stolee1-0/+21
2018-05-30Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2018-05-29Sync with Git 2.17.1Junio C Hamano1-22/+23
2018-05-21fsck: call fsck_finish() after fscking objectsJeff King1-0/+3
2018-05-21fsck: actually fsck blob dataJeff King1-22/+20
2018-05-02packfile: convert has_sha1_pack to object_idbrian m. carlson1-1/+1
2018-04-26cache.h: add repository argument to oid_object_infoStefan Beller1-1/+2
2018-04-11Merge branch 'sb/packfiles-in-repository'Junio C Hamano1-2/+0
2018-04-11Merge branch 'sb/object-store'Junio C Hamano1-3/+10
2018-03-26packfile: keep prepare_packed_git() privateNguyễn Thái Ngọc Duy1-2/+0
2018-03-26packfile: add repository argument to prepare_packed_gitStefan Beller1-1/+1
2018-03-26sha1_file: add repository argument to prepare_alt_odbStefan Beller1-1/+1
2018-03-26object-store: move packed_git and packed_git_mru to object storeStefan Beller1-2/+4
2018-03-23object-store: move alt_odb_list and alt_odb_tail to object storeStefan Beller1-0/+4
2018-03-23object-store: migrate alternates struct and functions from cache.hStefan Beller1-0/+1
2018-03-14sha1_file: convert sha1_object_info* to object_idbrian m. carlson1-1/+1
2018-03-14sha1_file: convert read_loose_object to use struct object_idbrian m. carlson1-1/+1
2018-03-06Merge branch 'bw/c-plus-plus'Junio C Hamano1-2/+2
2018-02-15Merge branch 'jt/fsck-code-cleanup'Junio C Hamano1-1/+7
2018-02-14object: rename function 'typename' to 'type_name'Brandon Williams1-2/+2
2018-02-13Merge branch 'jh/fsck-promisors'Junio C Hamano1-1/+25
2018-01-23fsck: fix leak when traversing treesEric Wong1-1/+7
2017-12-08sha1_file: support lazily fetching missing objectsJonathan Tan1-0/+3
2017-12-05fsck: support promisor objects as CLI argumentJonathan Tan1-0/+2
2017-12-05fsck: support referenced promisor objectsJonathan Tan1-0/+11
2017-12-05fsck: support refs pointing to promisor objectsJonathan Tan1-0/+8
2017-12-05fsck: introduce partialclone extensionJonathan Tan1-1/+1
2017-11-15Merge branch 'bp/read-index-from-skip-verification'Junio C Hamano1-0/+1
2017-11-08read_index_from(): speed index loading by skipping verification of the entry ...Ben Peart1-0/+1
2017-10-16refs: convert resolve_ref_unsafe to struct object_idbrian m. carlson1-1/+1
2017-09-29Merge branch 'ma/leakplugs'Junio C Hamano1-6/+1
2017-09-24object_array: add and use `object_array_pop()`Martin Ågren1-6/+1
2017-09-10Merge branch 'rs/fsck-obj-leakfix' into maintJunio C Hamano1-11/+11
2017-08-26Merge branch 'jt/packmigrate'Junio C Hamano1-0/+1
2017-08-24Merge branch 'jc/simplify-progress'Junio C Hamano1-1/+1
2017-08-23pack: move open_pack_index(), parse_pack_index()Jonathan Tan1-0/+1
2017-08-22Merge branch 'rs/fsck-obj-leakfix'Junio C Hamano1-11/+11
2017-08-19progress: simplify "delayed" progress APIJunio C Hamano1-1/+1
2017-08-11Merge branch 'jt/fsck-code-cleanup'Junio C Hamano1-25/+16
2017-08-10fsck: free buffers on error in fsck_obj()René Scharfe1-11/+11
2017-07-26fsck: cleanup unused variableJonathan Tan1-3/+1
2017-07-20object: remove "used" field from struct objectJonathan Tan1-10/+14
2017-07-20fsck: remove redundant parse_tree() invocationJonathan Tan1-12/+1
2017-07-17builtin/fsck: convert remaining caller of get_sha1 to object_idbrian m. carlson1-4/+4
2017-07-05Merge branch 'rs/sha1-name-readdir-optim'Junio C Hamano1-1/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-24sha1_file: guard against invalid loose subdirectory numbersRené Scharfe1-1/+1
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-13Merge branch 'nd/fopen-errors'Junio C Hamano1-2/+1
2017-05-29Merge branch 'bc/object-id'Junio C Hamano1-8/+8
2017-05-26use xfopen() in more placesNguyễn Thái Ngọc Duy1-2/+1
2017-05-16Merge branch 'js/larger-timestamps'Junio C Hamano1-3/+3
2017-05-08object: convert parse_object* to take struct object_idbrian m. carlson1-4/+4
2017-05-08Convert the verify_pack callback to struct object_idbrian m. carlson1-3/+3
2017-05-08Convert lookup_blob to struct object_idbrian m. carlson1-1/+1
2017-05-02Convert struct cache_tree to use struct object_idbrian m. carlson1-2/+2
2017-04-27timestamp_t: a new data type for timestampsJohannes Schindelin1-2/+2
2017-04-23PRItime: introduce a new "printf format" for timestampsJohannes Schindelin1-1/+1
2017-04-15read-cache: force_verify_index_checksumJeff Hostetler1-0/+1
2017-02-22Convert object iteration callbacks to struct object_idbrian m. carlson1-12/+12
2017-02-22refs: convert each_reflog_ent_fn to struct object_idbrian m. carlson1-8/+8
2017-01-31Merge branch 'jk/fsck-connectivity-check-fix'Junio C Hamano1-37/+81
2017-01-26fsck: lazily load types under --connectivity-onlyJeff King1-51/+7
2017-01-26fsck: move typename() printing to its own functionJeff King1-9/+20
2017-01-17fsck: check HAS_OBJ more consistentlyJeff King1-2/+2
2017-01-17fsck: do not fallback "git fsck <bogus>" to "git fsck"Jeff King1-1/+1
2017-01-17fsck: tighten error-checks of "git fsck <head>"Jeff King1-2/+5
2017-01-17fsck: prepare dummy objects for --connectivity-checkJeff King1-23/+97
2017-01-17fsck: report trees as danglingJeff King1-1/+1
2017-01-15fsck: parse loose object paths directlyJeff King1-13/+33
2016-10-10alternates: use a separate scratch spaceJeff King1-8/+2
2016-09-07streaming: make stream_blob_to_fd take struct object_idbrian m. carlson1-1/+1
2016-09-07cache: convert struct cache_entry to use struct object_idbrian m. carlson1-1/+1
2016-07-28Merge branch 'nd/pack-ofs-4gb-limit'Junio C Hamano1-0/+4
2016-07-18fsck: optionally show more helpful info for broken linksJohannes Schindelin1-4/+38
2016-07-18fsck: give the error function a chance to see the fsck_optionsJohannes Schindelin1-1/+2
2016-07-18fsck: refactor how to describe objectsJohannes Schindelin1-14/+23
2016-07-13fsck: use streaming interface for large blobs in packNguyễn Thái Ngọc Duy1-0/+4
2016-04-10fsck_head_link(): remove unneeded flag variableMichael Haggerty1-2/+1
2015-11-20Remove get_object_hash.brian m. carlson1-2/+2
2015-11-20Convert struct object to object_idbrian m. carlson1-16/+16
2015-11-20Add several uses of get_object_hash.brian m. carlson1-2/+2
2015-10-20Merge branch 'jk/war-on-sprintf'Junio C Hamano1-120/+34
2015-10-15Merge branch 'jc/fsck-dropped-errors'Junio C Hamano1-4/+14
2015-10-05fsck: use for_each_loose_file_in_objdirJeff King1-46/+24
2015-10-05fsck: drop inode-sorting codeJeff King1-68/+2