aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/clone.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-19odb: adopt logic to close object databasesPatrick Steinhardt1-1/+1
2025-07-23config: drop `git_config_set_multivar()` wrapperPatrick Steinhardt1-1/+1
2025-07-23config: drop `git_config_get_multivar_gently()` wrapperPatrick Steinhardt1-4/+4
2025-07-23config: drop `git_config_set()` wrapperPatrick Steinhardt1-4/+4
2025-07-23config: drop `git_config_set_gently()` wrapperPatrick Steinhardt1-1/+1
2025-07-23config: drop `git_config_get_bool()` wrapperPatrick Steinhardt1-1/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-2/+2
2025-07-01odb: rename `has_object()`Patrick Steinhardt1-1/+1
2025-07-01odb: get rid of `the_repository` when handling alternatesPatrick Steinhardt1-4/+6
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-05-12Merge branch 'ps/object-store-cleanup'Junio C Hamano1-3/+1
2025-04-29treewide: convert users of `repo_has_object_file()` to `has_object()`Patrick Steinhardt1-3/+1
2025-04-24Merge branch 'ps/parse-options-integers'Junio C Hamano1-3/+10
2025-04-24Merge branch 'ps/object-file-cleanup'Junio C Hamano1-3/+3
2025-04-24Merge branch 'ps/object-file-cleanup' into ps/object-store-cleanupJunio C Hamano1-3/+3
2025-04-17global: use designated initializers for optionsPatrick Steinhardt1-3/+10
2025-04-15Merge branch 'jt/clone-guess-remote-head-fix'Junio C Hamano1-2/+5
2025-04-15Merge branch 'ps/object-wo-the-repository'Junio C Hamano1-1/+1
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-04-15object-file: move `safe_create_leading_directories()` into "path.c"Patrick Steinhardt1-2/+2
2025-04-08Merge branch 'ps/object-wo-the-repository' into ps/object-file-cleanupJunio C Hamano1-1/+1
2025-03-29Merge branch 'ps/refname-avail-check-optim'Junio C Hamano1-0/+2
2025-03-25builtin/clone: suppress unexpected default branch adviceJustin Tobler1-2/+5
2025-03-12refs/iterator: separate lifecycle from iterationPatrick Steinhardt1-0/+2
2025-03-10hash: stop depending on `the_repository` in `null_oid()`Patrick Steinhardt1-1/+1
2025-03-05Merge branch 'ps/path-sans-the-repository'Junio C Hamano1-2/+2
2025-02-28path: adjust last remaining users of `the_repository`Patrick Steinhardt1-1/+1
2025-02-07path: drop `git_pathdup()` in favor of `repo_git_path()`Patrick Steinhardt1-1/+1
2025-02-06builtin/clone: teach git-clone(1) the --revision= optionToon Claes1-11/+46
2025-02-06clone: introduce struct clone_opts in builtin/clone.cToon Claes1-15/+29
2025-02-06clone: add tags refspec earlier to fetch refspecToon Claes1-16/+11
2025-02-06clone: refactor wanted_peer_refs()Toon Claes1-24/+15
2025-02-06clone: make it possible to specify --tagsToon Claes1-7/+7
2025-02-06clone: cut down on global variables in clone.cToon Claes1-94/+101
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+3
2024-12-04Merge branch 'ps/ref-backend-migration-optim'Junio C Hamano1-2/+2
2024-12-04Merge branch 'ps/leakfixes-part-10'Junio C Hamano1-1/+0
2024-11-21global: drop `UNLEAK()` annotationPatrick Steinhardt1-1/+0
2024-11-21refs: introduce "initial" transaction flagPatrick Steinhardt1-2/+2
2024-11-21refs: allow passing flags when setting up a transactionPatrick Steinhardt1-1/+1
2024-11-04doc: correct misleading descriptions for --shallow-excludeElijah Newren1-2/+2
2024-09-30builtin/clone: fix leaking repo state when cloning with bundle URIsPatrick Steinhardt1-0/+27
2024-09-13builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.hJohn Cai1-1/+2
2024-09-13builtin: add a repository parameter for builtin functionsJohn Cai1-1/+4
2024-08-23Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-1/+1
2024-08-13hooks: remove implicit dependency on `the_repository`Patrick Steinhardt1-1/+1
2024-08-08builtin/clone: propagate ref storage format to submodulesPatrick Steinhardt1-2/+8
2024-07-08Merge branch 'ps/leakfixes-more'Junio C Hamano1-1/+2
2024-07-02Merge branch 'jk/remote-wo-url'Junio C Hamano1-2/+2
2024-06-20Merge branch 'kn/update-ref-symref'Junio C Hamano1-1/+1
2024-06-17Merge branch 'ps/no-writable-strings'Junio C Hamano1-5/+9
2024-06-17Merge branch 'ps/ref-storage-migration'Junio C Hamano1-1/+1
2024-06-14remote: use strvecs to store remote url/pushurlJeff King1-2/+2
2024-06-11builtin/clone: plug leaking HEAD ref in `wanted_peer_refs()`Patrick Steinhardt1-1/+2
2024-06-07refspec: remove global tag refspec structurePatrick Steinhardt1-2/+6
2024-06-07global: improve const correctness when assigning string constantsPatrick Steinhardt1-3/+3
2024-06-07update-ref: add support for 'symref-create' commandKarthik Nayak1-1/+1
2024-06-06refs: convert ref storage format to an enumPatrick Steinhardt1-1/+1
2024-05-30Merge branch 'jc/fix-2.45.1-and-friends-for-maint'Junio C Hamano1-11/+2
2024-05-30Merge branch 'ps/refs-without-the-repository-updates'Junio C Hamano1-1/+4
2024-05-24Merge branch 'fixes/2.45.1/2.44' into jc/fix-2.45.1-and-friends-for-maintJunio C Hamano1-11/+2
2024-05-24Merge branch 'fixes/2.45.1/2.43' into fixes/2.45.1/2.44Junio C Hamano1-11/+2
2024-05-24Merge branch 'fixes/2.45.1/2.42' into fixes/2.45.1/2.43Junio C Hamano1-11/+2
2024-05-24Merge branch 'fixes/2.45.1/2.41' into fixes/2.45.1/2.42Junio C Hamano1-11/+2
2024-05-24Merge branch 'fixes/2.45.1/2.40' into fixes/2.45.1/2.41Junio C Hamano1-11/+2
2024-05-24Merge branch 'jc/fix-2.45.1-and-friends-for-2.39' into fixes/2.45.1/2.40Junio C Hamano1-11/+2
2024-05-23Merge branch 'ps/refs-without-the-repository-updates' into ps/ref-storage-mig...Junio C Hamano1-1/+4
2024-05-21clone: drop the protections where hooks aren't runJohannes Schindelin1-11/+1
2024-05-20Merge branch 'kn/ref-transaction-symref'Junio C Hamano1-3/+3
2024-05-17refs: drop `git_default_branch_name()`Patrick Steinhardt1-1/+4
2024-05-16Merge branch 'ps/refs-without-the-repository'Junio C Hamano1-15/+21
2024-05-16Merge branch 'ps/refs-without-the-repository' into ps/refs-without-the-reposi...Junio C Hamano1-15/+21
2024-05-13Sync with Git 2.45.1Junio C Hamano1-6/+45
2024-05-07cocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-15/+21
2024-04-29Sync with 2.44.1Johannes Schindelin1-6/+45
2024-04-19Sync with 2.43.4Johannes Schindelin1-6/+45
2024-04-19Sync with 2.42.2Johannes Schindelin1-6/+45
2024-04-19Sync with 2.41.1Johannes Schindelin1-6/+45
2024-04-19Sync with 2.40.2Johannes Schindelin1-6/+45
2024-04-19Sync with 2.39.4Johannes Schindelin1-6/+45
2024-04-19Merge branch 'ownership-checks-in-local-clones'Johannes Schindelin1-5/+34
2024-04-19clone: prevent hooks from running during a cloneJohannes Schindelin1-1/+11
2024-04-18builtin/clone: stop using `the_index`Patrick Steinhardt1-4/+3
2024-04-17builtin/clone: refuse local clones of unsafe repositoriesPatrick Steinhardt1-0/+14
2024-04-17builtin/clone: abort when hardlinked source and target file differPatrick Steinhardt1-1/+20
2024-04-17builtin/clone: stop resolving symlinks when copying filesPatrick Steinhardt1-5/+1
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-1/+1
2024-03-15Merge branch 'as/option-names-in-messages'Junio C Hamano1-1/+1
2024-03-07Merge branch 'ps/remote-helper-repo-initialization-fix'Junio C Hamano1-0/+46
2024-03-07Merge branch 'js/merge-tree-3-trees'Junio C Hamano1-1/+2
2024-03-05builtin/clone.c: trivial fix of messageAlexander Shopov1-1/+1
2024-02-27builtin/clone: allow remote helpers to detect repoPatrick Steinhardt1-0/+46
2024-02-23Always check `parse_tree*()`'s return valueJohannes Schindelin1-1/+2
2024-02-08Merge branch 'en/header-cleanup' into maint-2.43Junio C Hamano1-1/+0
2024-02-08Merge branch 'rs/i18n-cannot-be-used-together' into maint-2.43Junio C Hamano1-1/+3
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano1-3/+14
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-1/+0
2024-01-02builtin/clone: introduce `--ref-format=` value flagPatrick Steinhardt1-1/+11
2024-01-02setup: introduce "extensions.refStorage" extensionPatrick Steinhardt1-1/+1
2024-01-02setup: start tracking ref storage formatPatrick Steinhardt1-2/+3
2023-12-27Merge branch 'ps/clone-into-reftable-repository'Junio C Hamano1-30/+35
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-20Merge branch 'ps/clone-into-reftable-repository' into ps/refstorage-extensionJunio C Hamano1-30/+35
2023-12-20Merge branch 'jk/implicit-true'Junio C Hamano1-0/+2
2023-12-12builtin/clone: create the refdb with the correct object formatPatrick Steinhardt1-1/+8
2023-12-12builtin/clone: skip reading HEAD when retrieving remotePatrick Steinhardt1-1/+1
2023-12-12builtin/clone: set up sparse checkout laterPatrick Steinhardt1-3/+3
2023-12-12builtin/clone: fix bundle URIs with mismatching object formatsPatrick Steinhardt1-25/+23
2023-12-09config: handle NULL value when parsing non-boolsJeff King1-0/+2
2023-11-27i18n: factorize even more 'incompatible options' messagesRené Scharfe1-1/+3
2023-10-02tree-walk: init_tree_desc take an oid to get the hash algorithmEric W. Biederman1-1/+1
2023-07-27Merge branch 'jc/transport-parseopt-fix'Junio C Hamano1-4/+1
2023-07-18parse-options: introduce OPT_IPVERSION()Junio C Hamano1-4/+1
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-1/+0
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-4/+7
2023-07-05treewide: remove unnecessary includes for wrapper.hCalvin Wan1-1/+0
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-4/+7
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-21init-db, clone: change unnecessary global into passed parameterElijah Newren1-1/+2
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-0/+2
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+3
2023-04-24pkt-line.h: move declarations for pkt-line.c functions from cache.hElijah Newren1-0/+1
2023-04-24copy.h: move declarations for copy.c functions from cache.hElijah Newren1-0/+1
2023-04-20Merge branch 'gc/better-error-when-local-clone-fails-with-symlink'Junio C Hamano1-1/+11
2023-04-11Merge branch 'jc/clone-object-format-from-void'Junio C Hamano1-5/+6
2023-04-11treewide: remove double forward declaration of read_in_fullElijah Newren1-0/+1
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on advice.hElijah Newren1-0/+1
2023-04-11clone: error specifically with --local and symlinked objectsGlen Choo1-1/+11
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+4
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-3/+3
2023-04-05clone: propagate object-format when cloning from voidJunio C Hamano1-5/+6
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-3/+3
2023-03-21setup.h: move declarations for setup.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-21abspath.h: move absolute path functions from cache.hElijah Newren1-0/+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
2023-02-22Merge branch 'ab/various-leak-fixes'Junio C Hamano1-2/+3
2023-02-15Merge branch 'ds/bundle-uri-5'Junio C Hamano1-1/+5
2023-02-13Sync with Git 2.39.2Junio C Hamano1-4/+4
2023-02-06clone: use free() instead of UNLEAK()Ævar Arnfjörð Bjarmason1-2/+3
2023-02-06Sync with 2.38.4Johannes Schindelin1-4/+4
2023-02-06Sync with 2.37.6Johannes Schindelin1-4/+4
2023-02-06Sync with 2.36.5Johannes Schindelin1-4/+4
2023-02-06Sync with 2.35.7Johannes Schindelin1-4/+4
2023-02-06Sync with 2.34.7Johannes Schindelin1-4/+4
2023-02-06Sync with 2.33.7Johannes Schindelin1-4/+4
2023-02-06Sync with 2.32.6Johannes Schindelin1-4/+4
2023-02-06Sync with 2.31.7Johannes Schindelin1-4/+4
2023-02-06Sync with 2.30.8Johannes Schindelin1-4/+4
2023-01-31clone: set fetch.bundleURI if appropriateDerrick Stolee1-1/+5
2023-01-24clone: delay picking a transport until after get_repo_path()Taylor Blau1-4/+4
2023-01-02Merge branch 'ds/bundle-uri-4'Junio C Hamano1-0/+21
2022-12-25clone: unbundle the advertised bundlesDerrick Stolee1-5/+20
2022-12-25clone: request the 'bundle-uri' command when availableÆvar Arnfjörð Bjarmason1-0/+6
2022-11-21cocci: apply "pending" index-compatibility to some "builtin/*.c"Ævar Arnfjörð Bjarmason1-2/+2
2022-10-30replace and remove run_command_v_opt()René Scharfe1-2/+6
2022-10-30use child_process members "args" and "env" directlyRené Scharfe1-16/+17
2022-10-25Merge branch 'jk/clone-allow-bare-and-o-together' into maint-2.38Junio C Hamano1-3/+0
2022-10-17Sync with v2.38.1Junio C Hamano1-3/+5
2022-10-10Merge branch 'jk/clone-allow-bare-and-o-together'Junio C Hamano1-3/+0
2022-10-06Sync with 2.37.4Taylor Blau1-3/+5
2022-10-06Sync with 2.36.3Taylor Blau1-3/+5
2022-10-06Sync with 2.35.5Taylor Blau1-3/+5
2022-10-06Sync with 2.34.5Taylor Blau1-3/+5
2022-10-06Sync with 2.33.5Taylor Blau1-3/+5
2022-10-06Sync with 2.32.4Taylor Blau1-3/+5
2022-10-06Sync with 2.31.5Taylor Blau1-3/+5
2022-10-06Sync with 2.30.6Taylor Blau1-3/+5
2022-10-01builtin/clone.c: disallow `--local` clones with symlinksTaylor Blau1-3/+5
2022-09-22clone: allow "--bare" with "-o"Jeff King1-3/+0
2022-09-19Merge branch 'jk/list-objects-filter-cleanup'Junio C Hamano1-1/+1
2022-09-12list-objects-filter: add and use initializersJeff King1-1/+1
2022-08-24clone: warn on failure to repo_init()Derrick Stolee1-2/+3
2022-08-10clone: --bundle-uri cannot be combined with --depthDerrick Stolee1-0/+3
2022-08-10clone: add --bundle-uri optionDerrick Stolee1-0/+15
2022-08-05Merge branch 'jk/clone-unborn-confusion' into maintJunio C Hamano1-36/+45
2022-07-19Merge branch 'jk/clone-unborn-confusion'Junio C Hamano1-36/+45
2022-07-11clone: move unborn head creation to update_head()Jeff King1-12/+15
2022-07-07clone: use remote branch if it matches default HEADJeff King1-3/+14
2022-07-07clone: propagate empty remote HEAD even with other branchesJeff King1-22/+17
2022-07-07clone: drop extra newline from warning messageJeff King1-1/+1
2022-07-01clone: fix memory leak in wanted_peer_refs()Ævar Arnfjörð Bjarmason1-0/+1
2022-05-20Merge branch 'ep/maint-equals-null-cocci'Junio C Hamano1-2/+2
2022-05-02Merge branch 'ep/maint-equals-null-cocci' for maint-2.35Junio C Hamano1-2/+2
2022-05-02tree-wide: apply equals-null.cocciJunio C Hamano1-2/+2
2022-04-30clone: plug a miniscule leakJunio C Hamano1-1/+3
2022-03-21Merge branch 'ds/partial-bundles'Junio C Hamano1-0/+13
2022-03-13Merge branch 'gc/parse-tree-indirect-errors'Junio C Hamano1-0/+2
2022-03-09clone: fail gracefully when cloning filtered bundleDerrick Stolee1-0/+13
2022-03-01checkout, clone: die if tree cannot be parsedGlen Choo1-0/+2
2022-02-25Merge branch 'js/apply-partial-clone-filters-recursively'Junio C Hamano1-2/+34
2022-02-18Merge branch 'ab/release-transport-ls-refs-options'Junio C Hamano1-7/+6
2022-02-09clone, submodule: pass partial clone filters to submodulesJosh Steadmon1-2/+34
2022-02-09Merge branch 'jt/clone-not-quite-empty'Junio C Hamano1-6/+6
2022-02-09Merge branch 'ab/config-based-hooks-2'Junio C Hamano1-1/+2
2022-02-06ls-remote & transport API: release "struct transport_ls_refs_options"Ævar Arnfjörð Bjarmason1-7/+6