aboutsummaryrefslogtreecommitdiffstats
path: root/remote.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-11Merge branch 'js/merge-base-with-missing-commit'Junio C Hamano1-1/+1
2024-02-28commit-reach(repo_in_merge_bases_many): optionally expect missing commitsJohannes Schindelin1-1/+1
2024-02-26Merge branch 'rs/use-xstrncmpz'Junio C Hamano1-3/+2
2024-02-12use xstrncmpz()René Scharfe1-3/+2
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-1/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-12builtin/clone: skip reading HEAD when retrieving remotePatrick Steinhardt1-10/+16
2023-07-25Merge branch 'ah/advise-force-pushing'Junio C Hamano1-3/+5
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-1/+0
2023-07-13remote: don't imply that integration is always required before pushingAlex Henrie1-1/+1
2023-07-13wt-status: don't show divergence advice when committingAlex Henrie1-2/+4
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-3/+5
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-1/+2
2023-06-28config.c: pass ctx in configsetsGlen Choo1-3/+4
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-1/+2
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-12remote: fix a leak in query_matches_negative_refspecRubén Justo1-1/+1
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-1/+2
2023-04-11treewide: remove cache.h inclusion due to object-name.h changesElijah Newren1-1/+1
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-1/+5
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-7/+8
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-7/+8
2023-03-30Merge branch 'sg/parse-options-h-users'Junio C Hamano1-0/+1
2023-03-28cocci: apply the "refs.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+3
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "commit-reach.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "cache.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-03-21treewide: remove unnecessary cache.h inclusion from a few headersElijah Newren1-1/+1
2023-03-20treewide: include parse-options.h in source filesSZEDER Gábor1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren1-1/+2
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-12/+12
2022-08-19hashmap: mark unused callback parametersJeff King1-2/+2
2022-08-19refs: mark unused reflog callback parametersJeff King1-6/+9
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-1/+2
2022-08-12Merge branch 'ab/plug-revisions-leak'Junio C Hamano1-1/+4
2022-08-03Merge branch 'rs/mergesort'Junio C Hamano1-22/+0
2022-08-03revisions API: don't leak memory on argv elements that need free()-ingÆvar Arnfjörð Bjarmason1-1/+4
2022-07-17fetch-pack: use DEFINE_LIST_SORTRené Scharfe1-22/+0
2022-07-13Merge branch 'jk/remote-show-with-negative-refspecs'Junio C Hamano1-1/+1
2022-06-17i18n: fix mismatched camelCase config variablesJiang Xin1-1/+1
2022-06-17Merge branch 'ab/credentials-in-url-more'Junio C Hamano1-2/+2
2022-06-17remote: handle negative refspecs in git remote showJacob Keller1-1/+1
2022-06-16relative_url(): fix incorrect conditionJohannes Schindelin1-1/+1
2022-06-15transfer doc: move fetch.credentialsInUrl to "transfer" config namespaceÆvar Arnfjörð Bjarmason1-2/+2
2022-06-13Merge branch 'ab/remote-free-fix'Junio C Hamano1-7/+4
2022-06-13Merge branch 'ds/credentials-in-url'Junio C Hamano1-0/+48
2022-06-10Merge branch 'gc/zero-length-branch-config-fix'Junio C Hamano1-4/+6
2022-06-07Merge branch 'ab/plug-leak-in-revisions'Junio C Hamano1-0/+1
2022-06-07remote.c: don't dereference NULL in freeing loopÆvar Arnfjörð Bjarmason1-1/+1
2022-06-07remote.c: remove braces from one-statement "for"-loopsÆvar Arnfjörð Bjarmason1-6/+3
2022-06-06remote: create fetch.credentialsInUrl configDerrick Stolee1-0/+48
2022-06-03Merge branch 'ds/bundle-uri'Junio C Hamano1-0/+99
2022-06-01remote.c: reject 0-length branch namesGlen Choo1-0/+4
2022-06-01remote.c: don't BUG() on 0-length branch namesGlen Choo1-4/+2
2022-05-16remote: allow relative_url() to return an absolute urlDerrick Stolee1-2/+10
2022-05-16remote: move relative_url()Derrick Stolee1-0/+91
2022-04-29push: default to single remote even when not named originTao Klerks1-0/+2
2022-04-13revisions API users: add straightforward release_revisions()Ævar Arnfjörð Bjarmason1-0/+1
2022-03-01remote: read symbolic refs via `refs_read_symbolic_ref()`Patrick Steinhardt1-7/+7
2022-01-26refs API: remove "failure_errno" from refs_resolve_ref_unsafe()Ævar Arnfjörð Bjarmason1-2/+1
2021-12-10Merge branch 'gc/remote-with-fewer-static-global-variables'Junio C Hamano1-113/+256
2021-11-18remote: die if branch is not found in repositoryGlen Choo1-16/+68
2021-11-18remote: remove the_repository->remote_state from static methodsGlen Choo1-25/+71
2021-11-18remote: use remote_state parameter internallyGlen Choo1-86/+73
2021-11-18remote: move static variables into per-repository structGlen Choo1-67/+124
2021-09-27*.[ch] *_INIT macros: use { 0 } for a "zero out" idiomÆvar Arnfjörð Bjarmason1-1/+1
2021-09-10Merge branch 'cb/remote-ndebug-fix'Junio C Hamano1-3/+3
2021-09-02remote: avoid -Wunused-but-set-variable in gcc with -DNDEBUGCarlo Marcelo Arenas Belón1-3/+3
2021-08-25advice: remove read uses of most global `advice_` variablesBen Boeckel1-6/+6
2021-06-14*: fix typos which duplicate a wordAndrei Rybak1-1/+1
2021-03-13use CALLOC_ARRAYRené Scharfe1-4/+4
2020-12-23Merge branch 'nk/refspecs-negative-fix'Junio C Hamano1-3/+13
2020-12-21negative-refspec: improve comment on query_matches_negative_refspecNipunn Koorapati1-0/+6
2020-12-21negative-refspec: fix segfault on : refspecNipunn Koorapati1-3/+7
2020-12-18Merge branch 'js/init-defaultbranch-advice'Junio C Hamano1-2/+3
2020-12-14Merge branch 'jk/multi-line-indent-style-fix'Junio C Hamano1-1/+1
2020-12-13get_default_branch_name(): prepare for showing some adviceJohannes Schindelin1-2/+3
2020-12-03style: indent multiline "if" conditions to alignJeff King1-1/+1
2020-10-27Merge branch 'sk/force-if-includes'Junio C Hamano1-7/+177
2020-10-05Merge branch 'jk/refspecs-negative'Junio C Hamano1-4/+104
2020-10-03push: add reflog check for "--force-if-includes"Srinidhi Kaushik1-7/+177
2020-09-30refspec: add support for negative refspecsJacob Keller1-4/+104
2020-09-18Merge branch 'rs/refspec-leakfix'Junio C Hamano1-7/+3
2020-09-09Merge branch 'jt/interpret-branch-name-fallback'Junio C Hamano1-1/+1
2020-09-06refspec: add and use refspec_appendf()René Scharfe1-7/+3
2020-09-02wt-status: tolerate dangling marksJonathan Tan1-1/+1
2020-07-30strvec: rename struct fieldsJeff King1-1/+1
2020-07-28strvec: fix indentation in renamed callsJeff King1-2/+2
2020-07-28strvec: convert remaining callers away from argv_array nameJeff King1-6/+6
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-06-24remote: use the configured default branch name when appropriateJohannes Schindelin1-3/+11
2020-04-10parse_config_key(): return subsection len as size_tJeff King1-1/+1
2020-04-10remote: drop auto-strlen behavior of make_branch() and make_rewrite()Jeff King1-23/+12
2020-03-03remote: drop "explicit" parameter from remote_ref_for_branch()Jeff King1-9/+2
2020-02-10config: split repo scope to local and worktreeMatthew Rogers1-1/+2
2019-10-07hashmap: remove type arg from hashmap_{get,put,remove}_entryEric Wong1-2/+1
2019-10-07hashmap: hashmap_{put,remove} return hashmap_entry *Eric Wong1-1/+2
2019-10-07hashmap_cmp_fn takes hashmap_entry paramsEric Wong1-4/+6
2019-10-07hashmap_get{,_from_hash} return "struct hashmap_entry *"Eric Wong1-3/+4
2019-10-07hashmap_put takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_entry_init takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-05-09Merge branch 'dr/ref-filter-push-track-fix'Junio C Hamano1-21/+47
2019-04-18ref-filter: use correct branch for %(push:track)Damien Robert1-21/+47
2019-04-15remote.c: make singular free_ref() publicJeff King1-3/+3
2019-01-29Merge branch 'jk/remote-insteadof-cleanup'Junio C Hamano1-2/+2
2019-01-11remote: check config validity before creating rewrite structJeff King1-2/+2
2019-01-04Merge branch 'ab/push-dwim-dst'Junio C Hamano1-13/+68
2019-01-04Merge branch 'nd/i18n'Junio C Hamano1-24/+25
2018-11-14push: add an advice on unqualified <dst> pushÆvar Arnfjörð Bjarmason1-0/+37
2018-11-14push: move unqualified refname error into a functionÆvar Arnfjörð Bjarmason1-16/+22
2018-11-14push: improve the error shown on unqualified <dst> pushÆvar Arnfjörð Bjarmason1-6/+16
2018-11-14i18n: remote.c: mark error(...) messages for translationÆvar Arnfjörð Bjarmason1-17/+18
2018-11-14remote.c: add braces in anticipation of a follow-up changeÆvar Arnfjörð Bjarmason1-7/+9
2018-11-12remote.c: mark messages for translationNguyễn Thái Ngọc Duy1-21/+22
2018-11-12remote.c: turn some error() or die() to BUG()Nguyễn Thái Ngọc Duy1-3/+3
2018-11-03remote: make add_missing_tags() linearDerrick Stolee1-1/+33
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-09-17Merge branch 'jk/cocci'Junio C Hamano1-4/+4
2018-09-17Merge branch 'ds/reachable'Junio C Hamano1-49/+1
2018-08-29convert "oidcmp() != 0" to "!oideq()"Jeff King1-1/+1
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-3/+3
2018-08-17Merge branch 'jt/refspec-dwim-precedence-fix'Junio C Hamano1-3/+10
2018-08-02Merge branch 'sb/object-store-lookup'Junio C Hamano1-8/+11
2018-08-02remote: make refspec follow the same disambiguation rule as local refsJunio C Hamano1-3/+10
2018-07-24Merge branch 'jt/connectivity-check-after-unshallow'Junio C Hamano1-0/+1
2018-07-20commit-reach: move ref_newer from remote.cDerrick Stolee1-49/+0
2018-07-20commit.h: remove method declarationsDerrick Stolee1-0/+1
2018-07-18Merge branch 'sb/object-store-grafts'Junio C Hamano1-0/+1
2018-06-29tag: add repository argument to deref_tagStefan Beller1-2/+4
2018-06-29commit: add repository argument to lookup_commit_referenceStefan Beller1-2/+2
2018-06-29commit: add repository argument to lookup_commit_reference_gentlyStefan Beller1-4/+5
2018-06-29object: add repository argument to parse_objectStefan Beller1-2/+2
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-06-28fetch-pack: implement ref-in-wantBrandon Williams1-0/+1
2018-05-30Merge branch 'bw/ref-prefix-for-configured-refspec'Junio C Hamano1-274/+79
2018-05-30Merge branch 'js/use-bug-macro'Junio C Hamano1-1/+1
2018-05-18remote: convert check_push_refs to take a struct refspecBrandon Williams1-9/+5
2018-05-18remote: convert match_push_refs to take a struct refspecBrandon Williams1-13/+8
2018-05-18remote: convert match_explicit_refs to take a struct refspecBrandon Williams1-5/+4
2018-05-18remote: convert get_ref_match to take a struct refspecBrandon Williams1-12/+14
2018-05-18remote: convert query_refspecs to take a struct refspecBrandon Williams1-5/+5
2018-05-18remote: convert apply_refspecs to take a struct refspecBrandon Williams1-9/+6
2018-05-18remote: convert get_stale_heads to take a struct refspecBrandon Williams1-9/+9
2018-05-18remote: remove add_prune_tags_to_fetch_refspecBrandon Williams1-5/+0
2018-05-18remote: convert fetch refspecs to struct refspecBrandon Williams1-26/+12
2018-05-18remote: convert push refspecs to struct refspecBrandon Williams1-21/+14
2018-05-18remote: convert match_push_refs to use struct refspecBrandon Williams1-5/+8
2018-05-18remote: convert check_push_refs to use struct refspecBrandon Williams1-4/+6
2018-05-18refspec: rename struct refspec to struct refspec_itemBrandon Williams1-25/+25
2018-05-18refspec: move refspec parsing logic into its own fileBrandon Williams1-164/+1
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
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-03-14sha1_file: convert sha1_object_info* to object_idbrian m. carlson1-1/+1
2018-03-08Merge branch 'jh/status-no-ahead-behind'Junio C Hamano1-16/+34
2018-03-06Merge branch 'bw/c-plus-plus'Junio C Hamano1-10/+10
2018-02-22remote: rename 'new' variablesBrandon Williams1-10/+10
2018-02-09fetch: add a --prune-tags option and fetch.pruneTags configÆvar Arnfjörð Bjarmason1-0/+14
2018-02-09remote: add a macro for "refs/tags/*:refs/tags/*"Ævar Arnfjörð Bjarmason1-0/+1
2018-01-24status: support --no-ahead-behind in long formatJeff Hostetler1-5/+13
2018-01-24status: add --[no-]ahead-behind to status and commit for V2 format.Jeff Hostetler1-0/+2
2018-01-24stat_tracking_info: return +1 when branches not equalJeff Hostetler1-13/+21
2017-11-15Merge branch 'js/for-each-ref-remote-name-and-ref'Junio C Hamano1-0/+30
2017-11-08for-each-ref: let upstream/push report the remote ref nameJ Wyman1-0/+30
2017-10-16refs: convert dwim_ref and expand_ref to struct object_idbrian m. carlson1-1/+1
2017-10-16refs: convert read_ref and read_ref_full to object_idbrian m. carlson1-3/+3
2017-09-24refs: pass NULL to resolve_ref_unsafe() if hash is not neededRené Scharfe1-8/+4
2017-09-10Merge branch 'ma/up-to-date'Junio C Hamano1-1/+1
2017-08-23treewide: correct several "up-to-date" to "up to date"Martin Ågren1-1/+1
2017-08-11Merge branch 'sb/hashmap-cleanup'Junio C Hamano1-4/+8
2017-08-11Merge branch 'bc/object-id'Junio C Hamano1-4/+4
2017-07-17sha1_name: convert get_sha1* to get_oid*brian m. carlson1-1/+1
2017-07-17remote: convert struct push_cas to struct object_idbrian m. carlson1-3/+3
2017-07-05remote.c: drop hashmap_cmp_fn castStefan Beller1-4/+8
2017-06-30hashmap.h: compare function has access to a data fieldStefan Beller1-2/+5
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-13Merge branch 'nd/fopen-errors'Junio C Hamano1-2/+2
2017-06-05Merge branch 'jk/drop-free-refspecs'Junio C Hamano1-22/+6
2017-06-02Merge branch 'js/bs-is-a-dir-sep-on-windows'Junio C Hamano1-1/+6
2017-06-01remote: drop free_refspecs() functionJeff King1-22/+6
2017-05-29Merge branch 'js/plug-leaks'Junio C Hamano1-2/+3
2017-05-26wrapper.c: add and use fopen_or_warn()Nguyễn Thái Ngọc Duy1-2/+2
2017-05-26Windows: do not treat a path with backslashes as a remote's nick nameJohannes Sixt1-1/+6
2017-05-08object: convert parse_object* to take struct object_idbrian m. carlson1-2/+2
2017-05-08Convert lookup_commit* to struct object_idbrian m. carlson1-6/+7
2017-05-08remote: plug memory leak in match_explicit()Johannes Schindelin1-2/+3
2017-04-19Merge branch 'bw/push-options-recursively-to-submodules'Junio C Hamano1-1/+1
2017-04-16Merge branch 'jc/unused-symbols'Junio C Hamano1-1/+1
2017-04-11remote: expose parse_push_refspec functionBrandon Williams1-1/+1
2017-03-31remote.[ch]: parse_push_cas_option() can be staticJunio C Hamano1-1/+1