aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/fetch.c
AgeCommit message (Expand)AuthorFilesLines
29 hoursMerge branch 'ja/doc-synopsis-style'Junio C Hamano1-1/+1
12 daysdoc: convert git fetch to synopsis styleJean-Noël Avila1-1/+1
2025-11-04refs: introduce wrapper struct for `each_ref_fn`Patrick Steinhardt1-9/+4
2025-09-17refs/files: catch conflicts on case-insensitive file-systemsKarthik Nayak1-3/+18
2025-07-23config: drop `git_config_get_int()` wrapperPatrick Steinhardt1-2/+2
2025-07-23config: drop `git_config_get_string()` wrapperPatrick Steinhardt1-1/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-2/+2
2025-07-16Merge branch 'ph/fetch-prune-optim'Junio C Hamano1-11/+8
2025-07-15Merge branch 'ps/object-store'Junio C Hamano1-10/+11
2025-07-08Merge branch 'kn/fetch-push-bulk-ref-update'Junio C Hamano1-54/+73
2025-07-01clean up interface for refs_warn_dangling_symrefsPhil Hord1-4/+1
2025-07-01fetch-prune: optimize dangling-ref reportingPhil Hord1-10/+10
2025-07-01odb: rename `has_object()`Patrick Steinhardt1-8/+9
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-07-01object-store: rename `object_directory` to `odb_source`Patrick Steinhardt1-1/+1
2025-06-25Merge branch 'ps/maintenance-ref-lock'Junio C Hamano1-1/+1
2025-06-03usage: allow dying without writing an error messagePatrick Steinhardt1-1/+1
2025-05-19fetch: use batched reference updatesKarthik Nayak1-54/+73
2025-05-15fetch: avoid unnecessary work when there is no current branchJohannes Schindelin1-1/+1
2025-05-15fetch: carefully clear local variable's address after useJohannes Schindelin1-0/+1
2025-05-12Merge branch 'ps/object-store-cleanup'Junio C Hamano1-8/+7
2025-04-29treewide: convert users of `repo_has_object_file()` to `has_object()`Patrick Steinhardt1-8/+7
2025-04-24Merge branch 'ps/parse-options-integers'Junio C Hamano1-2/+8
2025-04-24Merge branch 'ps/object-file-cleanup'Junio C Hamano1-1/+1
2025-04-24Merge branch 'ps/object-file-cleanup' into ps/object-store-cleanupJunio C Hamano1-1/+1
2025-04-17Merge branch 'jk/fetch-follow-remote-head-fix'Junio C Hamano1-25/+11
2025-04-17global: use designated initializers for optionsPatrick Steinhardt1-2/+8
2025-04-16Merge branch 'kn/non-transactional-batch-updates'Junio C Hamano1-1/+1
2025-04-16Merge branch 'jt/ref-transaction-abort-fix'Junio C Hamano1-1/+8
2025-04-15Merge branch 'jt/clone-guess-remote-head-fix'Junio C Hamano1-1/+1
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-04-09fetch: make set_head() call easier to readJeff King1-4/+5
2025-04-08refs: introduce enum-based transaction error typesKarthik Nayak1-1/+1
2025-03-25remote: allow `guess_remote_head()` to suppress adviceJustin Tobler1-1/+1
2025-03-21builtin/fetch: avoid aborting closed reference transactionJustin Tobler1-1/+8
2025-03-21refspec: replace `refspec_item_init()` with fetch/push variantsTaylor Blau1-1/+1
2025-03-18fetch: don't ask for remote HEAD if followRemoteHEAD is "never"Jeff King1-4/+2
2025-03-18fetch: only respect followRemoteHEAD with configured refspecsJeff King1-19/+6
2025-03-10fetch: use ref prefix list to skip ls-refsJeff King1-20/+7
2025-03-10fetch: avoid ls-refs only to ask for HEAD symref updateJeff King1-3/+2
2025-03-10fetch: stop protecting additions to ref-prefix listJeff King1-6/+4
2025-03-10fetch: ask server to advertise HEAD for config-less fetchJeff King1-0/+8
2025-03-10Merge branch 'tb/fetch-follow-tags-fix'Junio C Hamano1-1/+3
2025-03-07fetch: fix following tags when fetching specific OIDTaylor Blau1-1/+3
2025-01-27fetch set_head: fix non-mirror remotes in bare repositoriesBence Ferdinandy1-5/+5
2025-01-27fetch set_head: refactor to use remote directlyBence Ferdinandy1-8/+7
2025-01-06Merge branch 'bf/fetch-set-head-config'Junio C Hamano1-2/+2
2025-01-06fetch: fix erroneous set_head advice messageBence Ferdinandy1-2/+2
2024-12-23Merge branch 'ps/build-sign-compare'Junio C Hamano1-0/+3
2024-12-19Merge branch 'bf/fetch-set-head-config'Junio C Hamano1-6/+55
2024-12-19Merge branch 'jc/set-head-symref-fix'Junio C Hamano1-1/+19
2024-12-19Merge branch 'bf/set-head-symref'Junio C Hamano1-0/+74
2024-12-07fetch: do not ask for HEAD unnecessarilyJunio C Hamano1-1/+19
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+3
2024-12-06fetch set_head: add warn-if-not-$branch optionBence Ferdinandy1-5/+11
2024-12-06fetch set_head: move warn advice into advise_if_enabledBence Ferdinandy1-4/+13
2024-12-04Merge branch 'ps/ref-backend-migration-optim'Junio C Hamano1-2/+2
2024-12-02fetch: add configuration for set_head behaviourBence Ferdinandy1-6/+40
2024-11-27Merge branch 'bf/set-head-symref' into bf/fetch-set-head-configJunio C Hamano1-0/+74
2024-11-25fetch set_head: handle mirrored bare repositoriesBence Ferdinandy1-5/+11
2024-11-25fetch: set remote/HEAD if it does not existBence Ferdinandy1-0/+68
2024-11-22Merge branch 'jk/fetch-prefetch-double-free-fix'Junio C Hamano1-6/+2
2024-11-21refs: allow passing flags when setting up a transactionPatrick Steinhardt1-2/+2
2024-11-12refspec: store raw refspecs inside refspec_itemJeff King1-6/+2
2024-11-12refspec: drop separate raw_nr countJeff King1-1/+0
2024-11-12fetch: adjust refspec->raw_nr when filtering prefetch refspecsJeff King1-0/+1
2024-11-04doc: correct misleading descriptions for --shallow-excludeElijah Newren1-2/+2
2024-10-08fetch: respect --server-option when fetching multiple remotesXing Xin1-0/+2
2024-09-25fetch: free "raw" string when shrinking refspecJeff King1-0/+1
2024-09-23Merge branch 'jc/pass-repo-to-builtins'Junio C Hamano1-2/+5
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-1/+4
2024-09-05drop trailing newline from warning/error/die messagesJeff King1-2/+2
2024-09-03Merge branch 'js/fetch-push-trace2-annotation'Junio C Hamano1-1/+15
2024-08-22fetch: add top-level trace2 regionsJosh Steadmon1-1/+15
2024-08-22builtin/fetch: fix leaking transaction with `--atomic`Patrick Steinhardt1-4/+4
2024-08-09refs: add referent to each_ref_fnJohn Cai1-1/+2
2024-06-20Merge branch 'kn/update-ref-symref'Junio C Hamano1-2/+2
2024-06-17Merge branch 'ps/no-writable-strings'Junio C Hamano1-3/+8
2024-06-07refspec: remove global tag refspec structurePatrick Steinhardt1-3/+8
2024-06-07update-ref: add support for 'symref-delete' commandKarthik Nayak1-2/+2
2024-05-30Merge branch 'ps/refs-without-the-repository-updates'Junio C Hamano1-1/+2
2024-05-23Merge branch 'kn/ref-transaction-symref' into kn/update-ref-symrefJunio C Hamano1-1/+1
2024-05-20Merge branch 'kn/ref-transaction-symref'Junio C Hamano1-1/+1
2024-05-17refs: pass ref store when detecting dangling symrefsPatrick Steinhardt1-1/+2
2024-05-07cocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-6/+14
2024-05-07refs: accept symref values in `ref_transaction_update()`Karthik Nayak1-1/+1
2024-04-15Merge branch 'ds/fetch-config-parse-microfix'Junio C Hamano1-0/+1
2024-04-05fetch: return when parsing submodule.recurseDerrick Stolee1-0/+1
2024-03-11Merge branch 'js/merge-base-with-missing-commit'Junio C Hamano1-0/+2
2024-02-28commit-reach(repo_in_merge_bases_many): report missing commitsJohannes Schindelin1-0/+2
2024-02-26fetch: convert strncmp() with strlen() to starts_with()René Scharfe1-3/+2
2024-01-19Merge branch 'tb/fetch-all-configuration'Junio C Hamano1-1/+16
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-2/+0
2024-01-08fetch: add new config option fetch.allTamino Bauknecht1-1/+16
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-12-18fetch: no redundant error message for atomic fetchJiang Xin1-5/+9
2023-09-13Merge branch 'jk/unused-post-2.42-part2'Junio C Hamano1-2/+2
2023-09-05parse-options: prefer opt->value to globals in callbacksJeff King1-2/+2
2023-08-29fetch: mark unused parameter in ref_transaction callbackJeff King1-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-06Merge branch 'gc/config-context'Junio C Hamano1-5/+8
2023-06-28config: pass kvi to die_bad_number()Glen Choo1-2/+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/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-05-17fetch: use `fetch_config` to store "submodule.fetchJobs" valuePatrick Steinhardt1-5/+6
2023-05-17fetch: use `fetch_config` to store "fetch.parallel" valuePatrick Steinhardt1-7/+8
2023-05-17fetch: use `fetch_config` to store "fetch.recurseSubmodules" valuePatrick Steinhardt1-15/+16
2023-05-17fetch: use `fetch_config` to store "fetch.showForcedUpdates" valuePatrick Steinhardt1-14/+21
2023-05-17fetch: use `fetch_config` to store "fetch.pruneTags" valuePatrick Steinhardt1-4/+5
2023-05-17fetch: use `fetch_config` to store "fetch.prune" valuePatrick Steinhardt1-4/+5
2023-05-17fetch: pass through `fetch_config` directlyPatrick Steinhardt1-15/+16
2023-05-17fetch: drop unneeded NULL-check for `remote_ref`Patrick Steinhardt1-3/+2
2023-05-17fetch: drop unused DISPLAY_FORMAT_UNKNOWN enum valuePatrick Steinhardt1-1/+0
2023-05-15Merge branch 'ps/fetch-output-format'Junio C Hamano1-197/+285
2023-05-10fetch: introduce machine-parseable "porcelain" output formatPatrick Steinhardt1-19/+69
2023-05-10fetch: move option related variables into main functionPatrick Steinhardt1-97/+100
2023-05-10fetch: lift up parsing of "fetch.output" config variablePatrick Steinhardt1-18/+32
2023-05-10fetch: introduce `display_format` enumPatrick Steinhardt1-21/+46
2023-05-10fetch: refactor calculation of the display table widthPatrick Steinhardt1-41/+34
2023-05-10fetch: print left-hand side when fetching HEAD:fooPatrick Steinhardt1-18/+19
2023-05-10fetch: fix `--no-recurse-submodules` with multi-remote fetchesPatrick Steinhardt1-0/+2
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-0/+1
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+6
2023-04-24pkt-line.h: move declarations for pkt-line.c functions from cache.hElijah Newren1-0/+1
2023-04-11pager.h: move declarations for pager.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 oid-array.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on advice.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on trace.h & trace2.hElijah Newren1-0/+2
2023-04-06Merge branch 'ds/fetch-bundle-uri-with-all'Junio C Hamano1-1/+6
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+2
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-10/+11
2023-04-06Merge branch 'ps/fetch-ref-update-reporting'Junio C Hamano1-129/+138
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-10/+11
2023-03-31fetch: download bundles once, even with --allDerrick Stolee1-1/+6
2023-03-28cocci: apply the "promisor-remote.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-6/+6
2023-03-28cocci: apply the "commit-reach.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+2
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+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-20fetch: centralize printing of reference updatesPatrick Steinhardt1-53/+55
2023-03-20fetch: centralize logic to print remote URLPatrick Steinhardt1-55/+44
2023-03-20fetch: centralize handling of per-reference formatPatrick Steinhardt1-3/+4
2023-03-20fetch: pass the full local reference name to `format_display`Patrick Steinhardt1-12/+11
2023-03-20fetch: move output format into `display_state`Patrick Steinhardt1-7/+6
2023-03-20fetch: move reference width calculation into `display_state`Patrick Steinhardt1-46/+65
2023-03-19Merge branch 'ew/fetch-no-write-fetch-head-fix'Junio C Hamano1-0/+2
2023-03-17Merge branch 'ew/fetch-hiderefs'Junio C Hamano1-0/+2
2023-03-17Merge branch 'jk/unused-post-2.39-part2'Junio C Hamano1-2/+4
2023-03-17Merge branch 'en/header-cleanup'Junio C Hamano1-0/+1
2023-03-09fetch: pass --no-write-fetch-head to subprocessesEric Wong1-0/+2
2023-02-27fetch: support hideRefs to speed up connectivity checksEric Wong1-0/+2
2023-02-24run_processes_parallel: mark unused callback parametersJeff King1-2/+4
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-02-21fetch: choose a sensible default with --jobs=0 againMatthias Aßhauer1-0/+3
2023-02-15Merge branch 'ds/bundle-uri-5'Junio C Hamano1-0/+6
2023-01-31fetch: fetch from an external bundle URIDerrick Stolee1-0/+6
2023-01-19fetch: fix duplicate remote parallel fetch bugCalvin Wan1-0/+1
2022-11-08Merge branch 'rs/no-more-run-command-v'Taylor Blau1-3/+6
2022-10-30replace and remove run_command_v_opt()René Scharfe1-3/+6
2022-10-12run-command API: move *_tr2() users to "run_processes_parallel()"Ævar Arnfjörð Bjarmason1-6/+12
2022-10-12run-command API: don't fall back on online_cpus()Ævar Arnfjörð Bjarmason1-0/+2
2022-10-12run-command API: have "run_processes_parallel{,_tr2}()" return voidÆvar Arnfjörð Bjarmason1-9/+8
2022-09-19Merge branch 'jk/list-objects-filter-cleanup'Junio C Hamano1-1/+1
2022-09-15Merge branch 'jk/proto-v2-ref-prefix-fix'Junio C Hamano1-3/+15
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-4/+4
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-4/+5
2022-09-12list-objects-filter: add and use initializersJeff King1-1/+1
2022-09-08fetch: add branch.*.merge to default ref-prefix extensionJeff King1-3/+15
2022-09-08fetch: stop checking for NULL transport->remote in do_fetch()Jeff King1-1/+1
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-4/+4
2022-08-29Merge branch 'ds/decorate-filter-tweak'Junio C Hamano1-2/+4
2022-08-19hashmap: mark unused callback parametersJeff King1-1/+1
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-3/+4
2022-08-05fetch: use ref_namespaces during prefetchDerrick Stolee1-2/+4
2022-07-18Merge branch 'ab/cocci-unused'Junio C Hamano1-2/+1
2022-07-11Merge branch 'ds/branch-checked-out'Junio C Hamano1-29/+17
2022-07-06cocci: add and apply a rule to find "unused" strbufsÆvar Arnfjörð Bjarmason1-2/+1
2022-06-21fetch: stop passing around unused worktrees variableJeff King1-15/+9
2022-06-15fetch: use new branch_checked_out() and add testsDerrick Stolee1-14/+8
2022-05-25Merge branch 'jc/avoid-redundant-submodule-fetch'Junio C Hamano1-1/+15
2022-05-18fetch: do not run a redundant fetch from submoduleJunio C Hamano1-1/+15
2022-05-16fetch: limit shared symref check only for local branchesOrgad Shaneh1-0/+1
2022-04-04Merge branch 'rc/fetch-refetch'Junio C Hamano1-2/+32
2022-03-28fetch: after refetch, encourage auto gc repackingRobert Coup1-1/+18
2022-03-28fetch: add --refetch optionRobert Coup1-1/+14
2022-03-25Merge branch 'gc/recursive-fetch-with-unused-submodules'Junio C Hamano1-7/+7
2022-03-16Merge branch 'ps/fetch-mirror-optim'Junio C Hamano1-15/+27
2022-03-16fetch: fetch unpopulated, changed submodulesGlen Choo1-7/+7
2022-03-13Merge branch 'ps/fetch-atomic'Junio C Hamano1-61/+129
2022-03-01fetch: avoid lookup of commits when not appending to FETCH_HEADPatrick Steinhardt1-15/+27
2022-03-01Merge branch 'ps/fetch-atomic' into ps/fetch-mirror-optimJunio C Hamano1-61/+129
2022-02-25Merge branch 'ja/i18n-common-messages'Junio C Hamano1-2/+2
2022-02-23Merge branch 'ps/fetch-optim-with-commit-graph'Junio C Hamano1-2/+6
2022-02-18Merge branch 'js/short-help-outside-repo-fix'Junio C Hamano1-2/+4