aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/fast-export.c
AgeCommit message (Expand)AuthorFilesLines
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
2013-09-03fast-export: make extra_refs globalFelipe Contreras1-11/+10
2013-08-05Replace deprecated OPT_BOOLEAN by OPT_BOOLStefan Beller1-5/+5
2013-07-29many small typofixesOndřej Bílka1-1/+1
2013-05-07fast-{import,export}: use get_sha1_hex() to read from marks fileFelipe Contreras1-1/+1
2013-05-07fast-export: don't parse commits while reading marks fileFelipe Contreras1-1/+6
2013-05-07fast-export: do not parse non-commit objects while reading marks fileFelipe Contreras1-6/+9
2013-04-15fast-export: add --signed-tags=warn-strip modeJohn Keeping1-1/+7
2013-04-12Sync with 'maint'Junio C Hamano1-2/+2
2013-04-12Merge branch 'maint-1.8.1' into maintJunio C Hamano1-2/+2
2013-04-12fast-export: fix argument name in error messagesPaul Price1-2/+2
2013-04-07fast-export: Allow pruned-references in mark fileAntoine Pelisse1-4/+7
2013-03-25Merge branch 'jk/fast-export-object-lookup'Junio C Hamano1-9/+13
2013-03-17fast-export: do not load blob objects twiceJeff King1-6/+10
2013-03-17fast-export: rename handle_object functionJeff King1-3/+3
2012-12-03fast-export: make sure updated refs get updatedFelipe Contreras1-3/+7
2012-12-03fast-export: don't handle uninteresting refsFelipe Contreras1-4/+7
2012-11-29fast-export: trivial cleanupFelipe Contreras1-1/+1
2012-11-26fast-export: avoid importing blob marksFelipe Contreras1-0/+4
2012-08-20i18n: fast-export: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-14/+14
2012-07-09Merge branch 'js/fast-export-paths-with-spaces'Junio C Hamano1-0/+2
2012-06-27fast-export: quote paths with spacesJay Soffian1-0/+2
2012-06-12Merge branch 'js/maint-fast-export-mark-error'Junio C Hamano1-1/+1
2012-03-01Merge branch 'rs/no-no-no-parseopt'Junio C Hamano1-3/+1
2012-02-28parse-options: remove PARSE_OPT_NEGHELPRené Scharfe1-3/+1
2011-12-21Fix an enum assignment issue spotted by Sun StudioÆvar Arnfjörð Bjarmason1-2/+2
2011-08-11Merge branch 'jk/fast-export-quote-path'Junio C Hamano1-7/+24
2011-08-05fast-export: quote paths in outputJeff King1-7/+24
2011-07-19fast-export: support done featureSverre Rabbelier1-0/+9
2011-02-27Merge branch 'mg/placeholders-are-lowercase'Junio C Hamano1-2/+2
2011-02-15Make <identifier> lowercase as per CodingGuidelinesMichael J Gruber1-2/+2
2011-02-03struct rev_info: convert prune_data to struct pathspecNguyễn Thái Ngọc Duy1-1/+1