aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/remote.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-04refs: introduce wrapper struct for `each_ref_fn`Patrick Steinhardt1-25/+19
2025-08-21Merge branch 'ps/remote-rename-fix'Junio C Hamano1-128/+217
2025-08-07Merge branch 'dl/squelch-maybe-uninitialized'Junio C Hamano1-4/+7
2025-08-06builtin/remote: only iterate through refs that are to be renamedPatrick Steinhardt1-9/+4
2025-08-06builtin/remote: rework how remote refs get renamedPatrick Steinhardt1-99/+197
2025-08-06builtin/remote: determine whether refs need renaming early onPatrick Steinhardt1-4/+8
2025-08-06builtin/remote: fix sign comparison warningsPatrick Steinhardt1-31/+23
2025-08-05remote: bail early from set_head() if missing remote nameJeff King1-4/+7
2025-08-04Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-28/+28
2025-07-23config: drop `git_config_set_multivar()` wrapperPatrick Steinhardt1-10/+10
2025-07-23config: drop `git_config_get_multivar_gently()` wrapperPatrick Steinhardt1-2/+2
2025-07-23config: drop `git_config_set()` wrapperPatrick Steinhardt1-8/+8
2025-07-23config: drop `git_config_set_gently()` wrapperPatrick Steinhardt1-4/+4
2025-07-23config: drop `git_config_get_string()` wrapperPatrick Steinhardt1-1/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-3/+3
2025-07-21Merge branch 'jk/remote-avoid-overlapping-names'Junio C Hamano1-0/+17
2025-07-16Merge branch 'ph/fetch-prune-optim'Junio C Hamano1-4/+1
2025-07-08remote: detect collisions in remote namesJeff King1-0/+17
2025-07-01clean up interface for refs_warn_dangling_symrefsPhil Hord1-4/+1
2025-07-01fetch-prune: optimize dangling-ref reportingPhil Hord1-2/+2
2025-07-01odb: rename `has_object()`Patrick Steinhardt1-2/+2
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
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-03-25remote: allow `guess_remote_head()` to suppress adviceJustin Tobler1-1/+1
2025-03-05Merge branch 'ps/path-sans-the-repository'Junio C Hamano1-2/+4
2025-02-28path: drop `git_path()` in favor of `repo_git_path()`Patrick Steinhardt1-2/+4
2025-02-12Merge branch 'ms/refspec-cleanup'Junio C Hamano1-1/+1
2025-02-04remote: rename function omit_name_by_refspecMeet Soni1-1/+1
2025-02-03Merge branch 'ps/3.0-remote-deprecation'Junio C Hamano1-0/+2
2025-01-24remote: announce removal of "branches/" and "remotes/"Patrick Steinhardt1-0/+2
2025-01-21Merge branch 'ps/the-repository'Junio C Hamano1-1/+2
2024-12-23Merge branch 'ps/build-sign-compare'Junio C Hamano1-0/+2
2024-12-19Merge branch 'bf/fetch-set-head-config'Junio C Hamano1-1/+11
2024-12-19Merge branch 'bf/set-head-symref'Junio C Hamano1-18/+54
2024-12-18progress: stop using `the_repository`Patrick Steinhardt1-1/+2
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+2
2024-12-06remote set-head: set followRemoteHEAD to "warn" if "always"Bence Ferdinandy1-1/+11
2024-11-27Merge branch 'bf/set-head-symref' into bf/fetch-set-head-configJunio C Hamano1-18/+54
2024-11-26builtin: pass repository to sub commandsKarthik Nayak1-12/+22
2024-11-25refs: add create_only option to refs_update_symref_extendedBence Ferdinandy1-1/+1
2024-11-25remote set-head: better output for --autoBence Ferdinandy1-12/+47
2024-11-25remote set-head: refactor for readabilityBence Ferdinandy1-11/+12
2024-11-25t/t5505-remote: test failure of set-headBence Ferdinandy1-1/+1
2024-11-12refspec: store raw refspecs inside refspec_itemJeff King1-4/+4
2024-11-12refspec: drop separate raw_nr countJeff King1-4/+4
2024-09-23Merge branch 'jc/pass-repo-to-builtins'Junio C Hamano1-1/+5
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-23remote: plug memory leaks at early returnsRené Scharfe1-8/+15
2024-08-23Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-2/+2
2024-08-15Merge branch 'jc/refs-symref-referent'Junio C Hamano1-1/+3
2024-08-13config: pass repo to functions that rename or copy sectionsPatrick Steinhardt1-2/+2
2024-08-09refs: add referent to each_ref_fnJohn Cai1-1/+3
2024-08-01builtin/remote: fix various trivial memory leaksPatrick Steinhardt1-7/+32
2024-08-01builtin/remote: fix leaking strings in `branch_list`Patrick Steinhardt1-2/+3
2024-07-02Merge branch 'jk/remote-wo-url'Junio C Hamano1-62/+26
2024-06-17Merge branch 'ps/no-writable-strings'Junio C Hamano1-6/+6
2024-06-14remote: drop checks for zero-url caseJeff King1-10/+3
2024-06-14remote: simplify url/pushurl selectionJeff King1-49/+20
2024-06-14remote: use strvecs to store remote url/pushurlJeff King1-28/+28
2024-06-07builtin/remote: cast away constness in `get_head_names()`Patrick Steinhardt1-6/+6
2024-05-30Merge branch 'ps/refs-without-the-repository-updates'Junio C Hamano1-1/+2
2024-05-20Merge branch 'kn/ref-transaction-symref'Junio C Hamano1-3/+3
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-15/+22
2024-03-05builtin/remote.c: trivial fix of error messageAlexander Shopov1-1/+1
2023-08-04Merge branch 'jc/parse-options-short-help'Junio C Hamano1-3/+2
2023-07-19remote: simplify "remote add --tags" help textJunio C Hamano1-3/+2
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-5/+10
2023-06-28config.c: pass ctx in configsetsGlen Choo1-4/+6
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-2/+5
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-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+1
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2022-11-08Merge branch 'rs/no-more-run-command-v'Taylor Blau1-20/+20
2022-10-30use child_process members "args" and "env" directlyRené Scharfe1-14/+12
2022-10-30use child_process member "args" instead of string array variableRené Scharfe1-6/+8
2022-10-27Merge branch 'jk/unused-anno-more'Junio C Hamano1-1/+1
2022-10-17string-list: mark unused callback parametersJeff King1-1/+1
2022-10-10Merge branch 'jk/remote-rename-without-fetch-refspec'Junio C Hamano1-23/+25
2022-09-22remote: handle rename of remote without fetch refspecJeff King1-23/+25
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-7/+7
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-5/+9
2022-09-13Merge branch 'sg/parse-options-subcommand'Junio C Hamano1-1/+1
2022-09-07notes, remote: show unknown subcommands between `'SZEDER Gábor1-1/+1
2022-09-01Merge branch 'sg/parse-options-subcommand'Junio C Hamano1-54/+52
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-7/+7
2022-08-25remote: run "remote rm" argv through parse_options()Jeff King1-3/+5
2022-08-25pass subcommand "prefix" arguments to parse_options()Jeff King1-12/+16
2022-08-19config: mark unused callback parametersJeff King1-1/+1
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-4/+8
2022-08-19builtin/remote.c: let parse-options parse subcommandsSZEDER Gábor1-39/+31
2022-08-10Merge branch 'jc/string-list-cleanup' into maintJunio C Hamano1-2/+1
2022-08-03Merge branch 'jc/string-list-cleanup'Junio C Hamano1-2/+1
2022-07-20builtin/remote.c: use the right kind of STRING_LIST_INITJunio C Hamano1-2/+1
2022-06-17remote: handle negative refspecs in git remote showJacob Keller1-2/+10
2022-05-09builtin/remote.c: teach `-v` to list filters for promisor remotesAbhradeep Chakraborty1-5/+13
2022-03-16Merge branch 'tb/rename-remote-progress'Junio C Hamano1-8/+31
2022-03-16Merge branch 'ps/fetch-mirror-optim'Junio C Hamano1-3/+5
2022-03-03builtin/remote.c: show progress when renaming remote referencesTaylor Blau1-5/+25
2022-03-03builtin/remote.c: parse options in 'rename'Taylor Blau1-3/+6
2022-03-01remote: read symbolic refs via `refs_read_symbolic_ref()`Patrick Steinhardt1-3/+5
2022-02-04i18n: remove from i18n strings that do not hold translatable partsJean-Noël Avila1-1/+1
2021-10-18Merge branch 'ab/designated-initializers-more'Junio C Hamano1-56/+55
2021-10-01builtin/remote.c: add and use SHOW_INFO_INITÆvar Arnfjörð Bjarmason1-45/+45
2021-10-01builtin/remote.c: add and use a REF_STATES_INITÆvar Arnfjörð Bjarmason1-12/+11
2021-09-07remote: warn about unhandled branch.<name>.rebase valuesJohannes Schindelin1-0/+3
2021-04-07Merge branch 'ah/plugleaks'Junio C Hamano1-4/+4
2021-03-21transport: also free remote_refs in transport_disconnect()Andrzej Hunt1-4/+4
2021-02-24remote: write camel-cased *.pushRemote on renameÆvar Arnfjörð Bjarmason1-1/+1
2021-02-24remote: add camel-cased *.tagOpt key, like cloneÆvar Arnfjörð Bjarmason1-1/+1
2020-11-25config: convert multi_replace to flagsDerrick Stolee1-3/+5
2020-11-09Merge branch 'ab/git-remote-exit-code'Junio C Hamano1-14/+28
2020-10-27Merge branch 'sb/clone-origin'Junio C Hamano1-5/+2
2020-10-27remote: add meaningful exit code on missing/existingÆvar Arnfjörð Bjarmason1-14/+28
2020-09-30refs: consolidate remote name validationSean Barag1-5/+2
2020-09-22Merge branch 'cs/don-t-pretend-a-failed-remote-set-head-succeeded'Junio C Hamano1-1/+1
2020-09-17remote: don't show success message when set-head failsChristian Schlack1-1/+1
2020-08-17refspec: make sure stack refspec_item variables are zeroedJacob Keller1-0/+1
2020-07-30strvec: rename struct fieldsJeff King1-2/+2
2020-07-28strvec: convert builtin/ callers away from argv_array nameJeff King1-10/+10
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-2/+2
2020-02-10remote rename/remove: gently handle remote.pushDefault configBert Wesarg1-0/+55
2020-02-10remote rename/remove: handle branch.<name>.pushRemote config valuesBert Wesarg1-1/+21
2020-02-10remote: clean-up config callbackBert Wesarg1-11/+17
2020-02-10remote: clean-up by returning early to avoid one indentationBert Wesarg1-46/+48
2020-02-10pull --rebase/remote rename: document and honor single-letter abbreviations r...Bert Wesarg1-18/+12
2019-12-11remote: pass NULL to read_ref_full() because object ID is not neededRené Scharfe1-2/+1
2019-05-13remove_all_fetch_refspecs(): drop unused "remote" parameterJeff King1-2/+2
2018-09-24Merge branch 'ms/remote-error-message-update'Junio C Hamano1-3/+3
2018-09-17Merge branch 'jk/cocci'Junio C Hamano1-1/+1
2018-09-17Merge branch 'ds/reachable'Junio C Hamano1-0/+1
2018-09-14builtin/remote: quote remote name on error to display empty nameShulhan1-3/+3
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-1/+1
2018-08-27Merge branch 'rs/opt-updates'Junio C Hamano1-1/+1
2018-08-21remote: improve argument help for add --mirrorRené Scharfe1-1/+1
2018-08-15Merge branch 'rs/remote-mv-leakfix'Junio C Hamano1-2/+3
2018-08-01remote: clear string_list after use in mv()René Scharfe1-2/+3
2018-07-20commit-reach: move ref_newer from remote.cDerrick Stolee1-0/+1
2018-07-18Merge branch 'sb/object-store-grafts'Junio C Hamano1-0/+1
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-05-30Merge branch 'bw/ref-prefix-for-configured-refspec'Junio C Hamano1-19/+18
2018-05-23Merge branch 'js/rebase-recreate-merge'Junio C Hamano1-4/+14
2018-05-18remote: convert match_push_refs to take a struct refspecBrandon Williams1-2/+1
2018-05-18remote: convert get_stale_heads to take a struct refspecBrandon Williams1-2/+1
2018-05-18remote: convert fetch refspecs to struct refspecBrandon Williams1-9/+9
2018-05-18remote: convert push refspecs to struct refspecBrandon Williams1-7/+7
2018-05-18refspec: rename struct refspec to struct refspec_itemBrandon Williams1-4/+4
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-08Merge branch 'bw/protocol-v2'Junio C Hamano1-1/+1
2018-04-26pull: accept --rebase=merges to recreate the branch topologyJohannes Schindelin1-4/+14
2018-03-15transport: convert transport_get_remote_refs to take a list of ref prefixesBrandon Williams1-1/+1
2018-03-14Merge branch 'nd/parseopt-completion'Junio C Hamano1-1/+1
2018-02-22remote: rename 'new' variablesBrandon Williams1-33/+33
2018-02-09remote: force completing --mirror= instead of --mirrorNguyễn Thái Ngọc Duy1-1/+1
2017-11-15Merge branch 'mh/tidy-ref-update-flags'Junio C Hamano1-3/+3
2017-11-06Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2017-11-06refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`Michael Haggerty1-3/+3
2017-10-21remote: handle broken symrefsJeff King1-1/+1
2017-10-16refs: convert read_ref and read_ref_full to object_idbrian m. carlson1-1/+1
2017-09-24refs: pass NULL to resolve_ref_unsafe() if hash is not neededRené Scharfe1-2/+1
2017-09-07remote: release strbuf after use in set_url()Rene Scharfe1-3/+3
2017-09-07remote: release strbuf after use in migrate_file()Rene Scharfe1-0/+1
2017-09-07remote: release strbuf after use in read_remote_branches()Rene Scharfe1-0/+1
2017-08-22Merge branch 'ma/parse-maybe-bool'Junio C Hamano1-1/+1
2017-08-07treewide: deprecate git_config_maybe_bool, use git_parse_maybe_boolMartin Ågren1-1/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-05Merge branch 'mh/packed-ref-store-prep'Junio C Hamano1-2/+2
2017-05-31C style: use standard style for "TRANSLATORS" commentsÆvar Arnfjörð Bjarmason1-2/+5
2017-05-23ref_store: take a `msg` parameter when deleting referencesMichael Haggerty1-2/+2
2017-02-27Merge branch 'rl/remote-allow-missing-branch-name-merge'Junio C Hamano1-1/+3
2017-02-21remote: ignore failure to remove missing branch.<name>.mergeRoss Lagerwall1-1/+3
2017-02-20delete_ref: accept a reflog message argumentKyle Meyer1-2/+2
2017-01-31Merge branch 'js/remote-rename-with-half-configured-remote'Junio C Hamano1-7/+7
2017-01-19remote rename: more carefully determine whether a remote is configuredJohannes Schindelin1-7/+7
2016-09-29use QSORTRené Scharfe1-2/+1
2016-07-25Merge branch 'mh/ref-iterators'Junio C Hamano1-6/+2
2016-07-13Merge branch 'va/i18n-even-more'Junio C Hamano1-10/+9
2016-07-06Merge branch 'jk/string-list-static-init'Junio C Hamano1-1/+1
2016-06-20remote rm: handle symbolic refs correctlyMichael Haggerty1-5/+1
2016-06-20delete_refs(): add a flags argumentMichael Haggerty1-2/+2
2016-06-17i18n: remote: allow translations to reorder messageVasco Almeida1-4/+3
2016-06-17i18n: remote: mark URL fallback text for translationVasco Almeida1-3/+3
2016-06-17i18n: builtin/remote.c: fix mark for translationVasco Almeida1-3/+3
2016-06-13use string_list initializer consistentlyJeff King1-1/+1
2016-05-09i18n: remote: add comment for translatorsVasco Almeida1-0/+2
2016-02-26Merge branch 'ps/config-error'Junio C Hamano1-46/+24
2016-02-22config: rename git_config_set_or_die to git_config_setPatrick Steinhardt1-16/+16
2016-02-22config: rename git_config_set to git_config_set_gentlyPatrick Steinhardt1-1/+1
2016-02-22remote: die on config error when manipulating remotesPatrick Steinhardt1-27/+12
2016-02-22remote: die on config error when setting/adding branchesPatrick Steinhardt1-17/+9
2016-02-22remote: die on config error when setting URLPatrick Steinhardt1-5/+6
2016-02-16remote: use remote_is_configured() for add and renameThomas Gummerer1-5/+2