aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/cat-file.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-23streaming: move into object database subsystemPatrick Steinhardt1-1/+1
2025-11-23streaming: get rid of `the_repository`Patrick Steinhardt1-1/+1
2025-10-30Merge branch 'ps/remove-packfile-store-get-packs'Junio C Hamano1-2/+1
2025-10-20Merge branch 'tb/cat-file-objectmode-update'Junio C Hamano1-1/+1
2025-10-16packfile: introduce macro to iterate through packsPatrick Steinhardt1-2/+1
2025-10-13builtin/cat-file.c: simplify calling `report_object_status()`Taylor Blau1-1/+1
2025-09-24packfile: refactor `get_all_packs()` to work on packfile storePatrick Steinhardt1-1/+2
2025-08-05Merge branch 'ps/object-file-wo-the-repository'Junio C Hamano1-1/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-1/+1
2025-07-16object-file: get rid of `the_repository` in loose object iteratorsPatrick Steinhardt1-1/+1
2025-07-15Merge branch 'ps/object-store'Junio C Hamano1-32/+30
2025-07-09Merge branch 'ps/object-store' into ps/object-file-wo-the-repositoryJunio C Hamano1-32/+30
2025-07-01odb: rename `read_object_with_reference()`Patrick Steinhardt1-2/+2
2025-07-01odb: rename `has_object()`Patrick Steinhardt1-2/+2
2025-07-01odb: rename `repo_read_object_file()`Patrick Steinhardt1-15/+11
2025-07-01odb: rename `oid_object_info()`Patrick Steinhardt1-12/+14
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-06-03cat-file.c: add batch handling for submodulesVictoria Dye1-1/+4
2025-06-03cat-file: add %(objectmode) atomVictoria Dye1-2/+7
2025-05-16cat-file: use type enum instead of buffer for -t optionJeff King1-9/+4
2025-05-16cat-file: make --allow-unknown-type a noopJeff King1-13/+5
2025-04-29treewide: convert users of `repo_has_object_file()` to `has_object()`Patrick Steinhardt1-1/+2
2025-04-24Merge branch 'ps/object-file-cleanup' into ps/object-store-cleanupJunio C Hamano1-1/+1
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-04-07builtin/cat-file: use bitmaps to efficiently filter by object typePatrick Steinhardt1-5/+37
2025-04-07builtin/cat-file: deduplicate logic to iterate over all objectsPatrick Steinhardt1-37/+48
2025-04-07builtin/cat-file: support "object:type=" objects filterPatrick Steinhardt1-1/+11
2025-04-07builtin/cat-file: support "blob:limit=" objects filterPatrick Steinhardt1-1/+14
2025-04-07builtin/cat-file: support "blob:none" objects filterPatrick Steinhardt1-1/+14
2025-04-07builtin/cat-file: wire up an option to filter objectsPatrick Steinhardt1-4/+32
2025-04-07builtin/cat-file: introduce function to report object statusPatrick Steinhardt1-5/+13
2025-04-07builtin/cat-file: rename variable that tracks usagePatrick Steinhardt1-22/+25
2024-12-23Merge branch 'ps/build-sign-compare'Junio C Hamano1-0/+3
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+3
2024-12-04packfile: pass down repository to `for_each_packed_object`Karthik Nayak1-3/+4
2024-09-23Merge branch 'jc/pass-repo-to-builtins'Junio C Hamano1-3/+6
2024-09-13builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.hJohn Cai1-1/+1
2024-09-13builtin: add a repository parameter for builtin functionsJohn Cai1-2/+5
2024-09-04builtin/cat-file: mark 'git cat-file' sparse-index compatibleKevin Lyles1-0/+3
2024-06-11object-name: free leaking object contextsPatrick Steinhardt1-6/+11
2024-04-18builtin: stop using `the_index`Patrick Steinhardt1-2/+2
2024-04-03Merge branch 'rs/strbuf-expand-bad-format'Junio C Hamano1-8/+8
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-3/+9
2024-03-25cat-file: use strbuf_expand_bad_format()René Scharfe1-8/+8
2024-02-14Merge branch 'js/check-null-from-read-object-file'Junio C Hamano1-2/+8
2024-02-06Always check the return value of `repo_read_object_file()`Johannes Schindelin1-2/+8
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-10-09doc/cat-file: make synopsis and description less confusingŠtěpán Němec1-2/+2
2023-10-02builtin/cat-file: let the oid determine the output algorithmEric W. Biederman1-3/+9
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-1/+0
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-2/+3
2023-07-06Merge branch 'rs/strbuf-expand-step'Junio C Hamano1-18/+17
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-3/+2
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-2/+3
2023-06-22Merge branch 'ps/cat-file-null-output'Junio C Hamano1-42/+43
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-06-18replace strbuf_expand() with strbuf_expand_step()René Scharfe1-18/+17
2023-06-12repository: create disable_replace_refs()Derrick Stolee1-1/+1
2023-06-12cat-file: add option '-Z' that delimits input and output with NULPatrick Steinhardt1-21/+36
2023-06-12cat-file: simplify reading from standard inputPatrick Steinhardt1-23/+9
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-11treewide: be explicit about dependence on convert.hElijah Newren1-0/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-10/+15
2023-03-28cocci: apply the "promisor-remote.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-9/+14
2023-03-21write-or-die.h: move declarations for write-or-die.c functions from cache.hElijah Newren1-0/+1
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+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-4/+4
2023-02-24for_each_object: mark unused callback parametersJeff King1-4/+4
2023-02-23replace-object.h: move read_replace_refs declaration from cache.h to hereElijah Newren1-0/+1
2023-02-23ident.h: move ident-related declarations out of cache.hElijah Newren1-0/+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-0/+1
2023-01-05Merge branch 'sa/cat-file-mailmap--batch-check'Junio C Hamano1-0/+28
2022-12-20cat-file: add mailmap support to --batch-check optionSiddharth Asthana1-0/+15
2022-12-20cat-file: add mailmap support to -s optionSiddharth Asthana1-0/+13
2022-11-21{builtin/*,repository}.c: add & use "USE_THE_INDEX_VARIABLE"Ævar Arnfjörð Bjarmason1-1/+1
2022-10-13doc txt & -h consistency: add "-z" to cat-file "-h"Ævar Arnfjörð Bjarmason1-1/+1
2022-08-05Merge branch 'tb/cat-file-z'Junio C Hamano1-3/+25
2022-08-03Merge branch 'sa/cat-file-mailmap'Junio C Hamano1-1/+42
2022-07-22builtin/cat-file.c: support NUL-delimited input with `-z`Taylor Blau1-3/+25
2022-07-18cat-file: add mailmap supportSiddharth Asthana1-1/+42
2022-07-01cat-file: fix a common "struct object_context" memory leakÆvar Arnfjörð Bjarmason1-10/+22
2022-07-01cat-file: fix a memory leak in --batch-command modeÆvar Arnfjörð Bjarmason1-0/+1
2022-03-23Merge branch 'jc/cat-file-batch-default-format-optim'Junio C Hamano1-6/+23
2022-03-16Merge branch 'ab/object-file-api-updates'Junio C Hamano1-4/+7
2022-03-15cat-file: skip expanding default formatJohn Cai1-6/+23
2022-02-25object-file API: pass an enum to read_object_with_reference()Ævar Arnfjörð Bjarmason1-4/+7
2022-02-18cat-file: add --batch-command modeJohn Cai1-1/+143
2022-02-18cat-file: introduce batch_mode enum to replace print_contentsJohn Cai1-4/+16
2022-02-18cat-file: rename cmdmode to transform_modeJohn Cai1-7/+7
2022-01-12cat-file: s/_/-/ in typo'd usage_msg_optf() messageÆvar Arnfjörð Bjarmason1-1/+1
2022-01-12cat-file: don't whitespace-pad "(...)" in SYNOPSIS and usage outputÆvar Arnfjörð Bjarmason1-3/+3
2022-01-05i18n: turn even more messages into "cannot be used together" onesJean-Noël Avila1-1/+1
2021-12-30cat-file: use GET_OID_ONLY_TO_DIE in --(textconv|filters)Ævar Arnfjörð Bjarmason1-10/+6
2021-12-30cat-file: correct and improve usage informationÆvar Arnfjörð Bjarmason1-20/+29
2021-12-30cat-file: fix remaining usage bugsÆvar Arnfjörð Bjarmason1-32/+63
2021-12-30cat-file: make --batch-all-objects a CMDMODEÆvar Arnfjörð Bjarmason1-14/+11
2021-12-30cat-file: move "usage" variable to cmd_cat_file()Ævar Arnfjörð Bjarmason1-19/+18
2021-12-30cat-file docs: fix SYNOPSIS and "-h" outputÆvar Arnfjörð Bjarmason1-2/+8
2021-10-08cat-file: use packed_object_info() for --batch-all-objectsJeff King1-14/+36
2021-10-08cat-file: split ordered/unordered batch-all-objects callbacksJeff King1-1/+3
2021-10-08cat-file: disable refs/replace with --batch-all-objectsJeff King1-0/+2
2021-06-04cat-file: merge two block into oneZheNing Hu1-4/+1
2021-06-04cat-file: handle trivial --batch format with --batch-all-objectsZheNing Hu1-6/+7
2020-07-09Merge branch 'cc/cat-file-usage-update' into masterJunio C Hamano1-1/+1
2020-07-01cat-file: add missing [=<format>] to usage/synopsisChristian Couder1-1/+1
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-4/+4
2020-04-22Merge branch 'jk/oid-array-cleanups'Junio C Hamano1-1/+1
2020-03-30oid_array: rename source file from sha1-arrayJeff King1-1/+1
2020-03-16convert: provide additional metadata to filtersbrian m. carlson1-1/+4
2020-03-16convert: permit passing additional metadata to filter processesbrian m. carlson1-1/+1
2020-02-24packed_object_info(): use object_id for returning delta baseJeff King1-1/+1
2019-09-18Merge branch 'cc/multi-promisor'Junio C Hamano1-2/+3
2019-06-27sha1-file.c: remove the_repo from read_object_with_reference()Nguyễn Thái Ngọc Duy1-1/+2
2019-06-25Use promisor_remote_get_direct() and has_promisor_remote()Christian Couder1-2/+3
2019-02-06Merge branch 'jk/loose-object-cache-oid'Junio C Hamano1-3/+3
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-2/+5
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-0/+1
2019-01-18Do not print 'dangling' for cat-file in case of ambiguityDavid Turner1-1/+4
2019-01-14sha1-name.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-2/+4
2019-01-08update comment references to sha1_object_info()Jeff King1-3/+3
2018-11-19Merge branch 'tb/print-size-t-with-uintmax-format'Junio C Hamano1-2/+2
2018-11-18Merge branch 'jk/unused-parameter-fixes'Junio C Hamano1-3/+7
2018-11-13Merge branch 'jk/detect-truncated-zlib-input'Junio C Hamano1-4/+12
2018-11-12Upcast size_t variables to uintmax_t when printingTorsten Bögershausen1-2/+2
2018-11-06assert NOARG/NONEG behavior of parse-options callbacksJeff King1-0/+2
2018-11-06cat-file: report an error on multiple --batch optionsJeff King1-1/+1
2018-11-06cat-file: mark batch options with NONEGJeff King1-2/+4
2018-10-31Adjust for 2.19.x seriesJunio C Hamano1-4/+12
2018-10-31cat-file: handle streaming failures consistentlyJeff King1-4/+12
2018-09-21diff.c: remove the_index dependency in textconv() functionsNguyễn Thái Ngọc Duy1-2/+4
2018-08-20Merge branch 'nd/no-the-index'Junio C Hamano1-1/+1
2018-08-14cat-file: use a single strbuf for all outputJeff King1-11/+17
2018-08-14cat-file: split batch "buf" into two variablesJeff King1-6/+8
2018-08-14cat-file: use oidset check-and-insertJeff King1-2/+1
2018-08-13convert.c: remove an implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-08-13cat-file: support "unordered" output for --batch-all-objectsJeff King1-5/+51
2018-08-13cat-file: rename batch_{loose,packed}_object callbacksJeff King1-9/+9
2018-07-18Merge branch 'sb/object-store-grafts'Junio C Hamano1-0/+1
2018-05-30Merge branch 'js/use-bug-macro'Junio C Hamano1-2/+2
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-2/+2
2018-04-26cache.h: add repository argument to oid_object_infoStefan Beller1-3/+3
2018-04-26cache.h: add repository argument to oid_object_info_extendedStefan Beller1-3/+3
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-6/+8
2018-03-14sha1_file: convert read_object_with_reference to object_idbrian m. carlson1-1/+1
2018-03-14sha1_file: convert sha1_object_info* to object_idbrian m. carlson1-7/+7
2018-03-06Merge branch 'bw/c-plus-plus'Junio C Hamano1-2/+2
2018-02-14object: rename function 'typename' to 'type_name'Brandon Williams1-1/+1
2018-02-14object_info: change member name from 'typename' to 'type_name'Brandon Williams1-1/+1
2017-12-08sha1_file: support lazily fetching missing objectsJonathan Tan1-0/+2
2017-09-28Merge branch 'jk/fallthrough'Junio C Hamano1-0/+1
2017-09-28Merge branch 'jk/diff-blob'Junio C Hamano1-2/+2
2017-09-22consistently use "fallthrough" comments in switchesJeff King1-0/+1
2017-09-22cat-file: handle NULL object_context.pathJeff King1-2/+2
2017-08-23pack: move for_each_packed_object()Jonathan Tan1-0/+1
2017-07-17sha1_name: convert GET_SHA1* flags to GET_OID*brian m. carlson1-2/+2
2017-07-17sha1_name: convert get_sha1* to get_oid*brian m. carlson1-3/+3
2017-07-05Merge branch 'jt/unify-object-info'Junio C Hamano1-3/+4
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-21sha1_file: rename LOOKUP_REPLACE_OBJECTJonathan Tan1-2/+3
2017-06-21sha1_file: rename LOOKUP_UNKNOWN_OBJECTJonathan Tan1-1/+1
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-05Merge branch 'js/blame-lib'Junio C Hamano1-0/+1
2017-06-02Merge branch 'jk/diff-blob'Junio C Hamano1-1/+3
2017-05-24blame: move textconv_object with related functionsJeff Smith1-0/+1
2017-05-24get_sha1_with_context: dynamically allocate oc->pathJeff King1-1/+3
2017-05-08cat-file: fix memory leakJohannes Schindelin1-0/+1
2017-03-31Rename sha1_array to oid_arraybrian m. carlson1-5/+5
2017-03-31Convert sha1_array_for_each_unique and for_each_abbrev to object_idbrian m. carlson1-2/+2
2017-03-31Make sha1_array_append take a struct object_id *brian m. carlson1-2/+2
2017-02-22Convert object iteration callbacks to struct object_idbrian m. carlson1-4/+4
2016-10-10Merge branch 'jk/pack-objects-optim-mru'Junio C Hamano1-3/+2
2016-09-26sha1_array: let callbacks interrupt iterationJeff King1-1/+2
2016-09-21Merge branch 'js/cat-file-filters'Junio C Hamano1-8/+96
2016-09-19Merge branch 'bc/object-id'Junio C Hamano1-34/+36
2016-09-11cat-file: support --textconv/--filters in batch modeJohannes Schindelin1-5/+44
2016-09-11cat-file --textconv/--filters: allow specifying the path separatelyJohannes Schindelin1-5/+21
2016-09-11cat-file: introduce the --filters optionJohannes Schindelin1-1/+35
2016-09-08cat-file: put spaces around pipes in usage stringAlex Henrie1-1/+1
2016-09-07streaming: make stream_blob_to_fd take struct object_idbrian m. carlson1-3/+3
2016-09-07builtin: convert textconv_object to use struct object_idbrian m. carlson1-1/+1
2016-09-07builtin/cat-file: convert some static functions to struct object_idbrian m. carlson1-25/+25
2016-09-07builtin/cat-file: convert struct expand_data to use struct object_idbrian m. carlson1-10/+12
2016-08-11provide an initializer for "struct object_info"Jeff King1-3/+2
2016-07-28Merge branch 'nd/pack-ofs-4gb-limit'Junio C Hamano1-2/+2
2016-07-13sha1_file.c: use type off_t* for object_info->disk_sizepNguyễn Thái Ngọc Duy1-2/+2
2016-05-31Merge branch 'jk/cat-file-buffered-batch-all'Junio C Hamano1-1/+20
2016-05-18cat-file: default to --buffer when --batch-all-objects is usedJeff King1-0/+4
2016-05-18cat-file: avoid noop calls to sha1_object_info_extendedJeff King1-1/+16
2016-01-15cat-file: read batch stream with strbuf_getline()Junio C Hamano1-1/+1
2016-01-15strbuf: introduce strbuf_getline_{lf,nul}()Junio C Hamano1-1/+1
2015-10-16usage: do not insist that standard input must come from a fileJunio C Hamano1-1/+1
2015-06-26cat-file: sort and de-dup output of --batch-all-objectsJeff King1-7/+15
2015-06-22cat-file: add --batch-all-objects optionJeff King1-2/+42