aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/fast-export.c
AgeCommit message (Expand)AuthorFilesLines
14 daysMerge branch 'cc/fast-import-strip-if-invalid'Junio C Hamano1-8/+28
2025-11-26fast-import: add 'strip-if-invalid' mode to --signed-commits=<mode>Christian Couder1-8/+30
2025-11-06Merge branch 'cc/fast-import-export-i18n-cleanup'Junio C Hamano1-39/+40
2025-10-30fast-export: mark strings for translationChristian Couder1-39/+40
2025-10-13fast-export: handle all kinds of tag signaturesChristian Couder1-4/+3
2025-09-17gpg-interface: refactor 'enum sign_mode' parsingChristian Couder1-14/+5
2025-08-04Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-1/+2
2025-07-23Merge branch 'cc/fast-import-export-signature-names'Junio C Hamano1-14/+48
2025-07-23config: move Git config parsing into "environment.c"Patrick Steinhardt1-0/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-1/+1
2025-07-15Merge branch 'ps/object-store'Junio C Hamano1-5/+5
2025-07-09fast-(import|export): improve on commit signature output formatChristian Couder1-14/+48
2025-07-01odb: rename `repo_read_object_file()`Patrick Steinhardt1-3/+3
2025-07-01odb: rename `oid_object_info()`Patrick Steinhardt1-1/+1
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-05-28fast-export: --signed-commits is experimentalJunio C Hamano1-6/+1
2025-04-29Merge branch 'az/tighten-string-array-constness'Junio C Hamano1-1/+1
2025-04-21global: mark usage strings and string tables constAhelenia Ziemiańska1-1/+1
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-04-08Merge branch 'ps/object-wo-the-repository' into ps/object-file-cleanupJunio C Hamano1-5/+5
2025-03-10fast-export, fast-import: add support for signed-commitsLuke Shumaker1-20/+103
2025-03-10fast-export: do not modify memory from get_commit_bufferLuke Shumaker1-28/+33
2025-03-10fast-export: rename --signed-tags='warn' to 'warn-verbatim'Luke Shumaker1-4/+4
2025-03-10fast-export: fix missing whitespace after switchChristian Couder1-4/+4
2025-03-10hash: stop depending on `the_repository` in `null_oid()`Patrick Steinhardt1-5/+5
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-0/+1
2024-09-13builtin: add a repository parameter for builtin functionsJohn Cai1-1/+4
2024-08-14builtin/fast-export: plug leaking tag namesPatrick Steinhardt1-5/+12
2024-08-14builtin/fast-export: fix leaking diff optionsPatrick Steinhardt1-0/+2
2024-06-14hash: require hash algorithm in `oidread()` and `oidclr()`Patrick Steinhardt1-1/+1
2024-02-12use xstrncmpz()René Scharfe1-2/+1
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-09-05parse-options: prefer opt->value to globals in callbacksJeff King1-15/+21
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-1/+0
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+1
2023-04-11object-file.h: move declarations for object-file.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-5/+7
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-5/+7
2023-03-28cocci: apply the "refs.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+2
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+3
2023-03-28cocci: apply the "commit.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-22fast-export: drop unused parameter from anonymize_commit_message()Jeff King1-2/+2
2023-03-22fast-export: drop data parameter from anonymous generatorsJeff King1-14/+13
2023-03-22fast-export: de-obfuscate --anonymize-map handlingJeff King1-6/+2
2023-03-22fast-export: factor out anonymized_entry creationJeff King1-9/+26
2023-03-22fast-export: simplify initialization of anonymized hashmapsJeff King1-7/+4
2023-03-22fast-export: drop const when storing anonymized valuesJeff King1-1/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2022-12-13diff: mark unused parameters in callbacksJeff King1-1/+1
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-1/+1
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-1/+1
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-1/+1
2022-08-19hashmap: mark unused callback parametersJeff King1-1/+1
2022-08-19parse-options: PARSE_OPT_KEEP_UNKNOWN only applies to --optionsSZEDER Gábor1-1/+1
2022-06-07Merge branch 'ab/plug-leak-in-revisions'Junio C Hamano1-0/+1
2022-05-04Merge branch 'rs/fast-export-pathspec-fix'Junio C Hamano1-0/+1
2022-04-302.36 fast-export regression fixRené Scharfe1-0/+1
2022-04-13revisions API users: add straightforward release_revisions()Ævar Arnfjörð Bjarmason1-0/+1
2022-03-16Merge branch 'ab/object-file-api-updates'Junio C Hamano1-1/+1
2022-02-25object-file API: have hash_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-1/+1
2022-02-25object-file API: split up and simplify check_object_signature()Ævar Arnfjörð Bjarmason1-1/+1
2022-02-04i18n: fix some misformated placeholders in command synopsisJean-Noël Avila1-1/+1
2022-01-10Merge branch 'ja/i18n-similar-messages'Junio C Hamano1-2/+2
2022-01-05i18n: factorize "--foo requires --bar" and the likeJean-Noël Avila1-1/+1
2022-01-05i18n: turn "options are incompatible" into "cannot be used together"Jean-Noël Avila1-1/+1
2021-12-21fast-export: fix surprising behavior with --first-parentWilliam Sprent1-36/+4
2021-10-25Merge branch 'ab/fsck-unexpected-type'Junio C Hamano1-1/+1
2021-10-01fsck: report invalid object type-path combinationsÆvar Arnfjörð Bjarmason1-1/+1
2021-09-10Merge branch 'tk/fast-export-anonymized-tag-fix'Junio C Hamano1-0/+1
2021-08-31fast-export: fix anonymized tag using original lengthTal Kelrich1-0/+1
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-5/+5
2021-01-06builtin/*: update usage formatZheNing Hu1-11/+11
2020-12-15style: do not "break" in switch() after "return"Ævar Arnfjörð Bjarmason1-1/+0
2020-10-05Merge branch 'js/default-branch-name-part-2'Junio C Hamano1-1/+1
2020-10-04Merge branch 'jk/drop-unaligned-loads'Junio C Hamano1-4/+4
2020-09-24Revert "fast-export: use local array to store anonymized oid"Jeff King1-4/+4
2020-09-21fast-export: avoid using unnecessary language in a code commentJohannes Schindelin1-1/+1
2020-09-02wt-status: tolerate dangling marksJonathan Tan1-1/+1
2020-06-25fast-export: use local array to store anonymized oidJeff King1-4/+4
2020-06-25fast-export: anonymize "master" refnameJeff King1-7/+0
2020-06-25fast-export: allow seeding the anonymized mappingJeff King1-1/+49
2020-06-23fast-export: add a "data" callback parameter to anonymize_str()Jeff King1-13/+14
2020-06-23fast-export: move global "idents" anonymize hashmap into functionJeff King1-1/+1
2020-06-23fast-export: use a flex array to store anonymized entriesJeff King1-3/+2
2020-06-23fast-export: stop storing lengths in anonymized hashmapsJeff King1-10/+18
2020-06-23fast-export: tighten anonymize_mem() interface to handle only stringsJeff King1-27/+26
2020-06-23fast-export: store anonymized oids as hex stringsJeff King1-12/+16
2020-06-23fast-export: use xmemdupz() for anonymizing oidsJeff King1-1/+1
2020-02-14Merge branch 'mt/use-passed-repo-more-in-funcs'Junio C Hamano1-1/+2
2020-01-31C: use skip_prefix() to avoid hardcoded string lengthJunio C Hamano1-2/+1
2020-01-31sha1-file: allow check_object_signature() to handle any repoMatheus Tavares1-1/+2
2019-10-15Merge branch 'ew/hashmap'Junio C Hamano1-5/+10
2019-10-07hashmap: remove type arg from hashmap_{get,put,remove}_entryEric Wong1-1/+1
2019-10-07hashmap_cmp_fn takes hashmap_entry paramsEric Wong1-2/+7
2019-10-07hashmap_get{,_from_hash} return "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_put takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_get takes "const struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_entry_init takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-04fast-export: handle nested tagsElijah Newren1-12/+18
2019-10-04fast-export: allow user to request tags be marked with --mark-tagsElijah Newren1-0/+7
2019-10-04fast-export: add support for --import-marks-if-existsElijah Newren1-4/+19
2019-09-28fast-export: fix exporting a tag and nothing elseElijah Newren1-1/+6
2019-06-20object: convert lookup_object() to use object_idJeff King1-2/+2
2019-05-14fast-export: do automatic reencoding of commit messages only if requestedElijah Newren1-3/+43
2019-05-14fast-export: differentiate between explicitly UTF-8 and implicitly UTF-8Elijah Newren1-1/+1
2019-05-14fast-export: avoid stripping encoding header if we cannot reencodeElijah Newren1-2/+5
2019-01-04Merge branch 'en/fast-export-import'Junio C Hamano1-53/+137
2018-11-17fast-export: add a --show-original-ids option to show original namesElijah Newren1-5/+15
2018-11-17fast-export: add --reference-excluded-parents optionElijah Newren1-10/+32
2018-11-17fast-export: ensure we export requested refsElijah Newren1-12/+42
2018-11-17fast-export: when using paths, avoid corrupt stream with non-existent markElijah Newren1-1/+12
2018-11-17fast-export: move commit rewriting logic into a function for reuseElijah Newren1-15/+22
2018-11-17fast-export: avoid dying when filtering by paths and old tags existElijah Newren1-3/+6
2018-11-17fast-export: use value from correct enumElijah Newren1-6/+6
2018-11-17fast-export: convert sha1 to oidElijah Newren1-12/+13
2018-11-12Upcast size_t variables to uintmax_t when printingTorsten Bögershausen1-1/+1
2018-10-19Merge branch 'nd/the-index'Junio C Hamano1-1/+1
2018-09-21revision.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-1/+1
2018-08-15Merge branch 'nd/i18n'Junio C Hamano1-21/+21
2018-07-23Update messages in preparation for i18nNguyễn Thái Ngọc Duy1-21/+21
2018-06-29commit: add repository argument to lookup_commitStefan Beller1-1/+1
2018-06-29blob: add repository argument to lookup_blobStefan Beller1-1/+1
2018-06-29object: add repository argument to parse_object_bufferStefan Beller1-1/+2
2018-06-29object: add repository argument to lookup_objectStefan Beller1-2/+3
2018-06-29object: add repository argument to parse_objectStefan Beller1-1/+1
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-06-25Merge branch 'nd/commit-util-to-slab'Junio C Hamano1-5/+9
2018-05-30Merge branch 'bw/ref-prefix-for-configured-refspec'Junio C Hamano1-14/+8
2018-05-30Merge branch 'js/use-bug-macro'Junio C Hamano1-1/+1
2018-05-30Merge branch 'rs/no-null-ptr-arith-in-fast-export'Junio C Hamano1-4/+3
2018-05-23Merge branch 'sb/oid-object-info'Junio C Hamano1-1/+1
2018-05-23Merge branch 'ds/lazy-load-trees'Junio C Hamano1-3/+3
2018-05-21revision.c: use commit-slab for show_sourceNguyễn Thái Ngọc Duy1-5/+9
2018-05-18remote: convert apply_refspecs to take a struct refspecBrandon Williams1-1/+1
2018-05-18fast-export: convert to use struct refspecBrandon Williams1-14/+7
2018-05-18refspec: rename struct refspec to struct refspec_itemBrandon Williams1-2/+2
2018-05-18refspec: move refspec parsing logic into its own fileBrandon Williams1-0/+1
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-10fast-export: avoid NULL pointer arithmeticRené Scharfe1-4/+3
2018-05-08Merge branch 'ma/fast-export-skip-merge-fix'Junio C Hamano1-1/+4
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-1/+1
2018-04-26cache.h: add repository argument to oid_object_infoStefan Beller1-1/+1
2018-04-21fast-export: fix regression skipping some merge-commitsMartin Ågren1-1/+4
2018-04-11treewide: replace maybe_tree with accessor methodsDerrick Stolee1-3/+3
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-2/+2
2018-03-14sha1_file: convert sha1_object_info* to object_idbrian m. carlson1-1/+1
2018-03-14sha1_file: convert check_sha1_signature to struct object_idbrian m. carlson1-1/+1
2018-02-14object: rename function 'typename' to 'type_name'Brandon Williams1-4/+4
2017-12-08decorate: clean up and document APIJonathan Tan1-1/+1
2017-11-09Merge branch 'bw/diff-opt-impl-to-bitfields'Junio C Hamano1-1/+1
2017-11-01diff: make struct diff_flags members lowercaseBrandon Williams1-1/+1
2017-11-01diff: remove DIFF_OPT_SET macroBrandon Williams1-1/+1
2017-10-16refs: convert dwim_ref and expand_ref to struct object_idbrian m. carlson1-1/+1
2017-09-29Merge branch 'ma/leakplugs'Junio C Hamano1-2/+1
2017-09-29Merge branch 'jt/fast-export-copy-modify-fix'Junio C Hamano1-14/+32
2017-09-24object_array: add and use `object_array_pop()`Martin Ågren1-2/+1
2017-09-21fast-export: do not copy from modified fileJonathan Tan1-14/+32
2017-06-30hashmap.h: compare function has access to a data fieldStefan Beller1-3/+4
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-19Merge branch 'bw/object-id'Junio C Hamano1-4/+4
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-13Merge branch 'nd/fopen-errors'Junio C Hamano1-3/+1
2017-06-05diff-tree: convert diff_tree_sha1 to struct object_idBrandon Williams1-2/+2
2017-06-02tree-diff: convert diff_root_tree_sha1 to struct object_idBrandon Williams1-2/+2
2017-05-29Merge branch 'js/plug-leaks'Junio C Hamano1-0/+2
2017-05-26use xfopen() in more placesNguyễn Thái Ngọc Duy1-3/+1
2017-05-08object: convert parse_object* to take struct object_idbrian m. carlson1-2/+2
2017-05-08Convert lookup_blob to struct object_idbrian m. carlson1-1/+1
2017-05-08Convert lookup_commit* to struct object_idbrian m. carlson1-1/+1
2017-05-08fast-export: avoid leaking memory in handle_tag()Johannes Schindelin1-0/+2
2017-02-22builtin/fast-export: convert to struct object_idbrian m. carlson1-29/+29
2016-09-29use QSORTRené Scharfe1-1/+1
2016-06-28diff: convert struct diff_filespec to struct object_idbrian m. carlson1-5/+5
2016-02-22convert trivial cases to ALLOC_ARRAYJeff King1-1/+1
2016-02-05Merge branch 'js/fopen-harder' into maintJunio C Hamano1-1/+1
2016-01-11Handle more file writes correctly in shared reposJohannes Schindelin1-1/+1
2015-11-20Remove get_object_hash.brian m. carlson1-6/+6
2015-11-20Convert struct object to object_idbrian m. carlson1-11/+11
2015-11-20Add several uses of get_object_hash.brian m. carlson1-6/+6
2015-06-22refs: move the remaining ref module declarations to refs.hMichael Haggerty1-0/+1
2014-08-27teach fast-export an --anonymize optionJeff King1-11/+289
2014-07-02Merge branch 'jk/commit-buffer-length'Junio C Hamano1-1/+4
2014-06-13commit: record buffer length in cacheJeff King1-1/+1
2014-06-13use get_commit_buffer everywhereJeff King1-1/+4
2014-04-21fast-export: add support to delete refsFelipe Contreras1-0/+14
2014-04-21fast-export: add new --refspec optionFelipe Contreras1-0/+32
2014-04-21fast-export: improve argument parsingFelipe Contreras1-1/+2
2013-12-17Merge branch 'cc/starts-n-ends-with'Junio C Hamano1-1/+1
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-1/+1
2013-12-05Merge branch 'jk/robustify-parse-commit'Junio C Hamano1-2/+2
2013-10-24use parse_commit_or_die instead of segfaultingJeff King1-2/+2
2013-09-17Merge branch 'fc/fast-export'Junio C Hamano1-40/+47
2013-09-04Merge branch 'sb/parseopt-boolean-removal'Junio C Hamano1-5/+5
2013-09-03fast-export: refactor get_tags_and_duplicates()Felipe Contreras1-30/+38