aboutsummaryrefslogtreecommitdiffstats
path: root/fsck.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-2/+4
2024-01-26Merge branch 'vd/fsck-submodule-url-test'Junio C Hamano1-133/+0
2024-01-18submodule-config.h: move check_submodule_urlVictoria Dye1-133/+0
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-1/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-09fsck: handle NULL value when parsing message configJeff King1-2/+6
2023-10-02tree-walk: init_tree_desc take an oid to get the hash algorithmEric W. Biederman1-2/+4
2023-08-31fsck: detect very large tree pathnamesJeff King1-1/+23
2023-07-25Merge branch 'jk/unused-parameter'Junio C Hamano1-2/+2
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-1/+0
2023-07-13fsck: mark unused parameters in various fsck callbacksJeff King1-2/+2
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-4/+8
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-06-28config: pass ctx with config filesGlen Choo1-1/+2
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-3/+6
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+2
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-04-24commit.h: reduce unnecessary includesElijah Newren1-0/+1
2023-04-11treewide: remove cache.h inclusion due to object.h changesElijah Newren1-1/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-3/+3
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "commit.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-21treewide: remove unnecessary cache.h inclusion from a few headersElijah Newren1-1/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren1-1/+2
2023-01-19fsck: do not assume NUL-termination of buffersJeff King1-13/+54
2023-01-18fsck: provide a function to fsck buffer without object structJeff King1-11/+18
2022-12-13Merge branch 'maint-2.36' into maint-2.37Junio C Hamano1-43/+94
2022-12-09fsck: implement checks for gitattributesPatrick Steinhardt1-1/+37
2022-12-09fsck: move checks for gitattributesPatrick Steinhardt1-5/+7
2022-12-09fsck: pull out function to check a set of blobsPatrick Steinhardt1-12/+22
2022-12-09fsck: refactor `fsck_blob()` to allow for more checksPatrick Steinhardt1-26/+29
2022-08-10fsck: actually detect bad file modes in treesJeff King1-1/+1
2022-08-10tree-walk: add a mechanism for getting non-canonicalized modesJeff King1-2/+2
2022-05-16dir API: add a generalized path_match_flags() functionÆvar Arnfjörð Bjarmason1-17/+6
2021-05-04fsck: warn about symlinked dotfiles we'll open with O_NOFOLLOWJeff King1-0/+18
2021-05-03fsck_tree(): wrap some long linesJeff King1-12/+36
2021-05-03fsck_tree(): fix shadowed variableJeff King1-20/+22
2021-03-28fetch-pack: use new fsck API to printing dangling submodulesÆvar Arnfjörð Bjarmason1-5/+18
2021-03-28fsck.c: move gitmodules_{found,done} into fsck_optionsÆvar Arnfjörð Bjarmason1-13/+10
2021-03-28fsck.c: add an fsck_set_msg_type() API that takes enumsÆvar Arnfjörð Bjarmason1-10/+17
2021-03-28fsck.c: pass along the fsck_msg_id in the fsck_error callbackÆvar Arnfjörð Bjarmason1-2/+4
2021-03-28fsck.[ch]: move FOREACH_FSCK_MSG_ID & fsck_msg_id from *.c to *.hÆvar Arnfjörð Bjarmason1-66/+0
2021-03-28fsck.c: give "FOREACH_MSG_ID" a more specific nameÆvar Arnfjörð Bjarmason1-3/+3
2021-03-28fsck.c: undefine temporary STR macro after useÆvar Arnfjörð Bjarmason1-0/+1
2021-03-28fsck.c: call parse_msg_type() early in fsck_set_msg_type()Ævar Arnfjörð Bjarmason1-2/+1
2021-03-28fsck.h: move FSCK_{FATAL,INFO,ERROR,WARN,IGNORE} into an enumÆvar Arnfjörð Bjarmason1-11/+10
2021-03-28fsck.c: refactor fsck_msg_type() to limit scope of "int msg_type"Ævar Arnfjörð Bjarmason1-7/+5
2021-03-28fsck.c: rename remaining fsck_msg_id "id" to "msg_id"Ævar Arnfjörð Bjarmason1-3/+3
2021-03-28fsck.c: remove (mostly) redundant append_msg_id() functionÆvar Arnfjörð Bjarmason1-19/+2
2021-03-28fsck.c: rename variables in fsck_set_msg_type() for less confusionÆvar Arnfjörð Bjarmason1-12/+12
2021-03-17fsck.c: refactor and rename common config callbackÆvar Arnfjörð Bjarmason1-2/+2
2021-03-01Merge branch 'jt/transfer-fsck-across-packs'Junio C Hamano1-0/+5
2021-02-22fetch-pack: print and use dangling .gitmodulesJonathan Tan1-0/+5
2021-02-17Merge branch 'js/fsck-name-objects-fix'Junio C Hamano1-0/+5
2021-02-10fsck --name-objects: be more careful parsing generation numbersJohannes Schindelin1-0/+5
2021-02-05Merge branch 'jk/forbid-lf-in-git-url' into maintJunio C Hamano1-1/+1
2021-01-25Merge branch 'jk/forbid-lf-in-git-url'Junio C Hamano1-1/+1
2021-01-07fsck: reject .gitmodules git:// urls with newlinesJeff King1-1/+1
2021-01-05mktag: allow omitting the header/body \n separatorÆvar Arnfjörð Bjarmason1-0/+2
2021-01-05fsck: make fsck_config() re-usableÆvar Arnfjörð Bjarmason1-0/+24
2021-01-05mktag: use fsck instead of custom verify_tag()Ævar Arnfjörð Bjarmason1-3/+29
2020-06-08Merge branch 'rs/fsck-duplicate-names-in-trees'Junio C Hamano1-2/+2
2020-05-21fsck: detect more in-tree d/f conflictsRené Scharfe1-1/+1
2020-05-21fsck: fix a typo in a commentRené Scharfe1-1/+1
2020-05-14Merge branch 'rs/fsck-duplicate-names-in-trees'Junio C Hamano1-2/+70
2020-05-11fsck: report non-consecutive duplicate names in treesRené Scharfe1-2/+70
2020-04-28Merge branch 'jk/config-use-size-t'Junio C Hamano1-1/+1
2020-04-19Git 2.25.4v2.25.4Jonathan Nieder1-5/+136
2020-04-19Git 2.23.3v2.23.3Jonathan Nieder1-5/+136
2020-04-19Git 2.22.4v2.22.4Jonathan Nieder1-5/+136
2020-04-19Git 2.21.3v2.21.3Jonathan Nieder1-5/+136
2020-04-19Git 2.20.4v2.20.4Jonathan Nieder1-5/+136
2020-04-19Git 2.19.5v2.19.5Jonathan Nieder1-5/+136
2020-04-19Git 2.18.4v2.18.4Jonathan Nieder1-5/+136
2020-04-19fsck: reject URL with empty host in .gitmodulesJonathan Nieder1-3/+7
2020-04-19credential: treat URL without scheme as invalidJonathan Nieder1-2/+45
2020-04-19fsck: convert gitmodules url to URL passed to curlJonathan Nieder1-5/+89
2020-04-10parse_config_key(): return subsection len as size_tJeff King1-1/+1
2020-03-17Git 2.25.3v2.25.3Junio C Hamano1-1/+15
2020-03-17Git 2.23.2v2.23.2Junio C Hamano1-1/+15
2020-03-17Git 2.22.3v2.22.3Junio C Hamano1-1/+15
2020-03-17Git 2.21.2v2.21.2Junio C Hamano1-1/+15
2020-03-17Git 2.20.3v2.20.3Junio C Hamano1-1/+15
2020-03-17Git 2.19.4v2.19.4Junio C Hamano1-1/+15
2020-03-17Git 2.18.3v2.18.3Junio C Hamano1-1/+15
2020-03-12fsck: detect gitmodules URLs with embedded newlinesJeff King1-1/+15
2019-12-09Sync with Git 2.24.1Junio C Hamano1-1/+24
2019-12-06Sync with 2.22.2Johannes Schindelin1-1/+24
2019-12-06Sync with 2.21.1Johannes Schindelin1-1/+24
2019-12-06Sync with 2.20.2Johannes Schindelin1-1/+24
2019-12-06Sync with 2.19.3Johannes Schindelin1-1/+24
2019-12-06Sync with 2.18.2Johannes Schindelin1-1/+24
2019-12-06Sync with 2.17.3Johannes Schindelin1-1/+24
2019-12-06fsck: reject submodule.update = !command in .gitmodulesJonathan Nieder1-0/+7
2019-12-06Sync with 2.16.6Johannes Schindelin1-1/+17
2019-12-06Sync with 2.14.6Johannes Schindelin1-1/+10
2019-12-05is_ntfs_dotgit(): only verify the leading segmentJohannes Schindelin1-1/+10
2019-10-28fsck: accept an oid instead of a "struct tree" for fsck_tree()Jeff King1-15/+15
2019-10-28fsck: accept an oid instead of a "struct commit" for fsck_commit()Jeff King1-15/+14
2019-10-28fsck: accept an oid instead of a "struct tag" for fsck_tag()Jeff King1-14/+13
2019-10-28fsck: rename vague "oid" local variablesJeff King1-4/+4
2019-10-28fsck: don't require an object struct in verify_headers()Jeff King1-5/+7
2019-10-28fsck: don't require an object struct for fsck_ident()Jeff King1-14/+16
2019-10-28fsck: drop blob struct from fsck_finish()Jeff King1-14/+4
2019-10-28fsck: accept an oid instead of a "struct blob" for fsck_blob()Jeff King1-13/+13
2019-10-28fsck: don't require an object struct for report()Jeff King1-59/+69
2019-10-28fsck: only require an oid for skiplist functionsJeff King1-4/+5
2019-10-28fsck: only provide oid/type in fsck_error callbackJeff King1-4/+7
2019-10-28fsck: use oids rather than objects for object_name APIJeff King1-27/+34
2019-10-28fsck_describe_object(): build on our get_object_name() primitiveJeff King1-4/+1
2019-10-28fsck: unify object-name codeJeff King1-31/+51
2019-10-28fsck: require an actual buffer for non-blobsJeff King1-42/+9
2019-10-28fsck: stop checking tag->taggedJeff King1-13/+2
2019-10-28fsck: stop checking commit->parent countsJeff King1-22/+1
2019-10-28fsck: stop checking commit->tree valueJeff King1-5/+0
2019-07-19Merge branch 'br/blame-ignore'Junio C Hamano1-36/+1
2019-06-20object: convert lookup_unknown_object() to use object_idJeff King1-1/+1
2019-05-16Move oidset_parse_file() to oidset.cBarret Rhoden1-35/+0
2019-05-16fsck: rename and touch up init_skiplist()Barret Rhoden1-9/+9
2019-04-08Use 'unsigned short' for mode, like diff_filespec doesElijah Newren1-1/+1
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-2/+2
2018-10-30Merge branch 'jc/cocci-preincr'Junio C Hamano1-1/+1
2018-10-24fsck: s/++i > 1/i++/Junio C Hamano1-1/+1
2018-10-10Merge branch 'ab/fsck-skiplist'Junio C Hamano1-33/+27
2018-09-27Sync with 2.18.1Junio C Hamano1-0/+14
2018-09-27Sync with 2.17.2Junio C Hamano1-0/+14
2018-09-27fsck: detect submodule paths starting with dashJeff King1-0/+7
2018-09-27fsck: detect submodule urls starting with dashJeff King1-0/+7
2018-09-12fsck: support comments & empty lines in skipListÆvar Arnfjörð Bjarmason1-0/+14
2018-09-12fsck: use oidset instead of oid_array for skipListRené Scharfe1-21/+2
2018-09-12fsck: use strbuf_getline() to read skiplist fileRené Scharfe1-13/+12
2018-08-02Merge branch 'sb/object-store-lookup'Junio C Hamano1-4/+5
2018-08-02Merge branch 'jk/fsck-gitmodules-gently'Junio C Hamano1-3/+6
2018-07-24Merge branch 'rj/submodule-fsck-skip'Junio C Hamano1-2/+11
2018-07-18Merge branch 'sb/object-store-grafts'Junio C Hamano1-1/+2
2018-07-16fsck: downgrade gitmodulesParse default to "info"Jeff King1-1/+1
2018-07-16fsck: split ".gitmodules too large" error from parse failureJeff King1-1/+2
2018-07-03fsck: check skiplist for object in fsck_blob()Ramsay Jones1-2/+11
2018-07-03fsck: silence stderr when parsing .gitmodulesJeff King1-1/+3
2018-07-03config: add options parameter to git_config_from_memJeff King1-1/+1
2018-06-29tree: add repository argument to lookup_treeStefan Beller1-1/+1
2018-06-29blob: add repository argument to lookup_blobStefan Beller1-2/+2
2018-06-29object: add repository argument to parse_objectStefan Beller1-1/+2
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-1/+2
2018-06-25Merge branch 'nd/complete-config-vars'Junio C Hamano1-17/+51
2018-06-13Merge branch 'jk/submodule-fsck-loose-fixup'Junio C Hamano1-1/+2
2018-06-11fsck: avoid looking at NULL blob->objectJeff King1-1/+2
2018-05-30Merge branch 'bc/object-id'Junio C Hamano1-9/+11
2018-05-29Sync with Git 2.17.1Junio C Hamano1-4/+134
2018-05-29fsck: produce camelCase config key namesNguyễn Thái Ngọc Duy1-4/+18
2018-05-29help: add --config to list all available configNguyễn Thái Ngọc Duy1-0/+12
2018-05-29fsck: factor out msg_id_info[] lazy initialization codeNguyễn Thái Ngọc Duy1-16/+24
2018-05-23Merge branch 'ds/lazy-load-trees'Junio C Hamano1-3/+5
2018-05-21fsck: complain when .gitmodules is a symlinkJeff King1-2/+9
2018-05-21fsck: check .gitmodules contentJeff King1-1/+59
2018-05-21fsck: handle promisor objects in .gitmodules checkJeff King1-0/+3
2018-05-21fsck: detect gitmodules filesJeff King1-0/+58
2018-05-21fsck: actually fsck blob dataJeff King1-1/+7
2018-05-21fsck: simplify ".git" checkJeff King1-3/+1
2018-05-18commit: add repository argument to lookup_commit_graftJonathan Nieder1-1/+1
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-02fsck: convert static functions to struct object_idbrian m. carlson1-9/+11
2018-04-11treewide: replace maybe_tree with accessor methodsDerrick Stolee1-3/+5
2018-04-11treewide: rename tree to maybe_treeDerrick Stolee1-3/+3
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-1/+1
2018-02-14object: rename function 'typename' to 'type_name'Brandon Williams1-1/+1
2017-10-11Merge branch 'rs/fsck-null-return-from-lookup'Junio C Hamano1-4/+4
2017-10-06fsck: handle NULL return of lookup_blob() and lookup_tree()René Scharfe1-4/+4
2017-09-22consistently use "fallthrough" comments in switchesJeff King1-0/+1
2017-07-13commit: convert lookup_commit_graft to struct object_idStefan Beller1-1/+1
2017-05-29Merge branch 'bc/object-id'Junio C Hamano1-3/+3
2017-05-08object: convert parse_object* to take struct object_idbrian m. carlson1-1/+1
2017-05-08Convert lookup_tree to struct object_idbrian m. carlson1-1/+1
2017-05-08Convert lookup_blob to struct object_idbrian m. carlson1-1/+1
2017-04-23parse_timestamp(): specify explicitly where we parse timestampsJohannes Schindelin1-1/+1
2017-03-31Rename sha1_array to oid_arraybrian m. carlson1-3/+3
2017-03-31Convert sha1_array_lookup to take struct object_idbrian m. carlson1-1/+1
2017-03-31Make sha1_array_append take a struct object_id *brian m. carlson1-1/+1
2017-03-28sha1-array: convert internal storage for struct sha1_array to object_idbrian m. carlson1-2/+2
2017-03-28fsck: convert init_skiplist to struct object_idbrian m. carlson1-5/+6
2017-01-26fsck: lazily load types under --connectivity-onlyJeff King1-0/+4
2016-09-27fsck: handle bad trees like other errorsDavid Turner1-6/+12
2016-07-18fsck: optionally show more helpful info for broken linksJohannes Schindelin1-4/+17
2016-07-18fsck: give the error function a chance to see the fsck_optionsJohannes Schindelin1-2/+3
2016-07-18fsck_walk(): optionally name objects on the goJohannes Schindelin1-4/+83
2016-05-17Merge branch 'jc/fsck-nul-in-commit'Junio C Hamano1-3/+13
2016-05-10fsck: detect and warn a commit with embedded NULJunio C Hamano1-0/+8
2016-04-25tree-walk: convert tree_entry_extract() to use struct object_idbrian m. carlson1-3/+3
2016-04-25struct name_entry: use struct object_id instead of unsigned char sha1[20]brian m. carlson1-2/+2
2016-04-14fsck_commit_buffer(): do not special case the last validationJunio C Hamano1-3/+5
2016-02-22convert trivial cases to ALLOC_ARRAYJeff King1-1/+2
2015-12-10Merge branch 'bc/object-id'Junio C Hamano1-7/+7
2015-11-20fsck: treat a NUL in a tag header as an errorRené Scharfe1-1/+2
2015-11-20Remove get_object_hash.brian m. carlson1-3/+3
2015-11-20Convert struct object to object_idbrian m. carlson1-4/+4
2015-11-20Add several uses of get_object_hash.brian m. carlson1-3/+3
2015-08-03Merge branch 'js/fsck-opt'Junio C Hamano1-119/+436
2015-07-13Merge branch 'jc/fsck-retire-require-eoh'Junio C Hamano1-4/+13
2015-06-28fsck: it is OK for a tag and a commit to lack the bodyJunio C Hamano1-4/+13