aboutsummaryrefslogtreecommitdiffstats
path: root/remote.c
AgeCommit message (Expand)AuthorFilesLines
2014-04-08Merge branch 'jl/nor-or-nand-and'Junio C Hamano1-1/+1
2014-04-03Merge branch 'cn/fetch-prune-overlapping-destination'Junio C Hamano1-6/+44
2014-03-31comments: fix misuses of "nor"Justin Lebar1-1/+1
2014-03-26fetch: handle overlaping refspecs on --pruneCarlos Martín Nieto1-6/+44
2014-03-18Merge branch 'jk/remote-pushremote-config-reading' into maintJunio C Hamano1-1/+6
2014-03-18Merge branch 'jk/detect-push-typo-early'Junio C Hamano1-29/+75
2014-03-14Merge branch 'jk/remote-pushremote-config-reading'Junio C Hamano1-1/+6
2014-03-05push: detect local refspec errors earlyJeff King1-0/+25
2014-03-05match_explicit_lhs: allow a "verify only" modeJeff King1-14/+24
2014-03-05match_explicit: hoist refspec lhs checks into their own functionJeff King1-19/+30
2014-02-24remote: handle pushremote config in any orderJeff King1-1/+6
2014-01-27Merge branch 'mh/retire-ref-fetch-rules'Junio C Hamano1-4/+4
2014-01-14refname_match(): always use the rules in ref_rev_parse_rulesMichael Haggerty1-4/+4
2013-12-27Merge branch 'jc/push-refmap'Junio C Hamano1-4/+4
2013-12-17Merge branch 'cc/starts-n-ends-with'Junio C Hamano1-23/+23
2013-12-12Merge branch 'mh/fetch-tags-in-addition-to-normal-refs'Junio C Hamano1-28/+66
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-23/+23
2013-12-04push: use remote.$name.push as a refmapJunio C Hamano1-4/+4
2013-10-30fetch: improve the error messages emitted for conflicting refspecsMichael Haggerty1-3/+22
2013-10-30handle_duplicate(): mark error message for translationMichael Haggerty1-1/+1
2013-10-30ref_remote_duplicates(): extract a function handle_duplicate()Michael Haggerty1-8/+10
2013-10-30ref_remove_duplicates(): simplify loop logicMichael Haggerty1-21/+31
2013-10-30ref_remove_duplicates(): avoid redundant bisectionMichael Haggerty1-6/+6
2013-10-30query_refspecs(): move some constants out of the loopMichael Haggerty1-2/+2
2013-10-30get_expanded_map(): avoid memory leakMichael Haggerty1-3/+3
2013-10-30get_expanded_map(): add docstringMichael Haggerty1-0/+7
2013-10-28Merge branch 'jk/remote-literal-string-leakfix'Junio C Hamano1-1/+1
2013-10-15remote: do not copy "origin" string literalJeff King1-1/+1
2013-09-20Merge branch 'jx/branch-vv-always-compare-with-upstream'Junio C Hamano1-25/+47
2013-09-09Merge branch 'jc/push-cas'Junio C Hamano1-13/+162
2013-09-09Merge branch 'ms/fetch-prune-configuration'Junio C Hamano1-0/+3
2013-08-26status: always show tracking branch even no changeJiang Xin1-3/+4
2013-08-26branch: report invalid tracking branch as goneJiang Xin1-25/+46
2013-07-22push --force-with-lease: tie it all togetherJunio C Hamano1-13/+36
2013-07-22push --force-with-lease: implement logic to populate old_sha1_expect[]Junio C Hamano1-0/+61
2013-07-22remote.c: add command line option parser for "--force-with-lease"Junio C Hamano1-0/+57
2013-07-18fetch: make --prune configurableMichael Schubert1-0/+3
2013-07-18Merge branch 'bc/push-match-many-refs'Junio C Hamano1-2/+25
2013-07-08cache.h: move remote/connect API out of itJunio C Hamano1-0/+8
2013-07-08remote.c: avoid O(m*n) behavior in match_push_refsBrandon Casey1-2/+25
2013-06-23remote: remove dead code in read_branches_file()Ramkumar Ramachandra1-19/+4
2013-05-28remote: trivial style cleanupFelipe Contreras1-2/+1
2013-04-02remote.c: introduce branch.<name>.pushremoteRamkumar Ramachandra1-0/+4
2013-04-02remote.c: introduce remote.pushdefaultRamkumar Ramachandra1-0/+7
2013-04-02remote.c: introduce a way to have different remotes for fetch/pushRamkumar Ramachandra1-4/+21
2013-04-02remote.c: simplify a bit of code using git_config_string()Ramkumar Ramachandra1-3/+2
2013-04-01Merge branch 'jc/nobody-sets-src-peer-ref'Junio C Hamano1-3/+0
2013-03-25Merge branch 'jc/push-follow-tag'Junio C Hamano1-0/+99
2013-03-21Merge branch 'jc/fetch-raw-sha1'Junio C Hamano1-18/+23
2013-03-05push: --follow-tagsJunio C Hamano1-0/+99
2013-03-04match_push_refs(): nobody sets src->peer_ref anymoreJunio C Hamano1-3/+0
2013-02-07fetch: fetch objects by their exact SHA-1 object namesJunio C Hamano1-1/+11
2013-02-07parse_fetch_refspec(): clarify the codeflow a bitJunio C Hamano1-17/+12
2013-02-04Merge branch 'jc/push-reject-reasons'Junio C Hamano1-23/+19
2013-01-24push: introduce REJECT_FETCH_FIRST and REJECT_NEEDS_FORCEJunio C Hamano1-3/+8
2013-01-24push: further simplify the logic to assign rejection reasonJunio C Hamano1-16/+11
2013-01-24push: further clean up fields of "struct ref"Junio C Hamano1-10/+6
2013-01-23Merge branch 'cr/push-force-tag-update'Junio C Hamano1-36/+7
2013-01-16push: fix "refs/tags/ hierarchy cannot be updated without --force"Junio C Hamano1-36/+7
2013-01-11Merge branch 'jc/fetch-ignore-symref' into maintJunio C Hamano1-1/+12
2013-01-05Merge branch 'jc/fetch-ignore-symref'Junio C Hamano1-1/+12
2013-01-05Merge branch 'cr/push-force-tag-update'Junio C Hamano1-20/+63
2012-12-11fetch: ignore wildcarded refspecs that update local symbolic refsJunio C Hamano1-1/+12
2012-12-03Merge branch 'mm/status-push-pull-advise'Junio C Hamano1-6/+9
2012-12-03status: respect advice.statusHints for ahead/behind adviceJeff King1-6/+9
2012-12-03push: cleanup push rules commentChris Rorvick1-15/+17
2012-12-02push: clarify rejection of update to non-commit-ishChris Rorvick1-0/+5
2012-12-02push: require force for annotated tagsChris Rorvick1-2/+9
2012-12-02push: require force for refs under refs/tags/Chris Rorvick1-4/+14
2012-12-02push: flag updates that require forceChris Rorvick1-3/+8
2012-12-02push: keep track of "update" state separatelyChris Rorvick1-7/+11
2012-12-02push: add advice for rejected tag referenceChris Rorvick1-0/+10
2012-11-28Merge branch 'mm/status-push-pull-advise'Junio C Hamano1-3/+10
2012-11-16status: add advice on how to push/pull to tracking branchMatthieu Moy1-3/+10
2012-11-15Merge branch 'jc/maint-fetch-tighten-refname-check'Junio C Hamano1-2/+2
2012-10-19get_fetch_map(): tighten checks on dest refsJunio C Hamano1-2/+2
2012-07-13Merge branch 'jk/push-delete-ref-error-message'Junio C Hamano1-0/+3
2012-07-03push: don't guess at qualifying remote refs on deletionJeff King1-0/+3
2012-05-22add sorting infrastructure for list refsJeff King1-0/+22
2012-02-22push: add '--prune' optionFelipe Contreras1-3/+28
2012-02-22remote: refactor code into alloc_delete_ref()Felipe Contreras1-5/+9
2012-02-22remote: reorganize check_pattern_match()Felipe Contreras1-29/+30
2012-02-22remote: use a local variable in match_push_refs()Felipe Contreras1-9/+10
2012-02-01i18n: format_tracking_info "Your branch is behind" messageJiang Xin1-11/+21
2011-12-13Rename resolve_ref() to resolve_ref_unsafe()Nguyễn Thái Ngọc Duy1-3/+3
2011-11-13Convert many resolve_ref() calls to read_ref*() and ref_exists()Nguyễn Thái Ngọc Duy1-2/+2
2011-10-26Merge branch 'cn/fetch-prune'Junio C Hamano1-48/+56
2011-10-21Merge branch 'jc/match-refs-clarify'Junio C Hamano1-5/+8
2011-10-15fetch: honor the user-provided refspecs when pruning refsCarlos Martín Nieto1-12/+23
2011-10-15remote: separate out the remote_find_tracking logic into query_refspecsCarlos Martín Nieto1-36/+33
2011-10-05remote: use xstrdup() instead of strdup()Michael Haggerty1-1/+1
2011-10-05Change check_ref_format() to take a flags argumentMichael Haggerty1-39/+14
2011-09-12rename "match_refs()" to "match_push_refs()"Junio C Hamano1-5/+8
2011-06-07make copy_ref globally availableJeff King1-1/+1
2011-06-05consider only branches in guess_remote_headJeff King1-1/+3
2010-11-03Change "tracking branch" to "remote-tracking branch"Matthieu Moy1-1/+1
2010-07-05string_list: Add STRING_LIST_INIT macro and make use of it.Thiago Farina1-2/+2
2010-06-30Merge branch 'jp/string-list-api-cleanup'Junio C Hamano1-3/+3
2010-06-27string_list: Fix argument order for string_list_appendJulian Phillips1-1/+1
2010-06-27string_list: Fix argument order for string_list_lookupJulian Phillips1-1/+1
2010-06-27string_list: Fix argument order for string_list_insertJulian Phillips1-1/+1
2010-06-21Merge branch 'gv/portable'Junio C Hamano1-2/+1
2010-06-07Merge branch 'maint'Junio C Hamano1-1/+1
2010-06-07Change C99 comments to old-style C commentsTor Arntsen1-1/+1
2010-05-31Rewrite dynamic structure initializations to runtime assignmentGary V. Vaughan1-2/+1
2010-04-19Honor "tagopt = --tags" configuration optionSamuel Tardieu1-0/+2
2010-01-09refactor ref status logic for pushingTay Ray Chuan1-0/+50
2009-12-26Merge branch 'sr/vcs-helper'Junio C Hamano1-4/+38
2009-11-23Merge branch 'bg/fetch-multi'Junio C Hamano1-1/+41
2009-11-17Allow helper to map private ref names into normal namesDaniel Barkalow1-0/+27
2009-11-17Add a config option for remotes to specify a foreign vcsDaniel Barkalow1-1/+3
2009-11-17Use a function to determine whether a remote is validDaniel Barkalow1-4/+9
2009-11-14remote: fix use-after-free error detected by glibc in ref_remove_duplicatesJulian Phillips1-0/+2
2009-11-10remote: refactor some logic into get_stale_heads()Jay Soffian1-0/+40
2009-11-10Add the configuration option skipFetchAllBjörn Gustavsson1-1/+2
2009-10-27remote: Make ref_remove_duplicates faster for large numbers of refsJulian Phillips1-19/+22
2009-09-08Add url.<base>.pushInsteadOf: URL rewriting for push onlyJosh Triplett1-9/+27
2009-09-07Wrap rewrite globals in a struct in preparation for adding another setJosh Triplett1-25/+28
2009-08-31Style fixes, add a space after if/for/while.Brian Gianforcaro1-1/+1
2009-07-06Merge branch 'cb/maint-fetch-refspec-wo-dst'Junio C Hamano1-1/+1
2009-06-20Fix various sparse warnings in the git source codeLinus Torvalds1-3/+3
2009-06-20Merge branch 'mg/pushurl'Junio C Hamano1-0/+14
2009-06-18fetch: do not create ref from empty nameClemens Buchacher1-1/+1
2009-06-13Merge branch 'cb/match_refs_internal_tail'Junio C Hamano1-4/+13
2009-06-09Allow push and fetch urls to be differentMichael J Gruber1-0/+14
2009-06-01match_refs: search ref list tail internallyClemens Buchacher1-4/+13
2009-05-23Merge branch 'mg/track'Junio C Hamano1-2/+2
2009-05-14Fix behavior with non-commit upstream referencesMichael J Gruber1-2/+2
2009-04-24remote.c: do not trigger remote.<name>.<var> codepath for two-level namesJohannes Sixt1-1/+1
2009-04-21Revert "stat_tracking_info(): only count real commits"Junio C Hamano1-2/+1
2009-04-17Merge branch 'bw/short-ref-strict'Junio C Hamano1-5/+1
2009-04-17remote.c: use shorten_unambiguous_refMichael J Gruber1-5/+1
2009-04-17get_local_heads(): do not return random pointer if there is no headNguyễn Thái Ngọc Duy1-1/+1
2009-04-12Merge branch 'fg/remote-prune'Junio C Hamano1-0/+11
2009-04-07remote: New function remote_is_configured()Finn Arne Gangstad1-0/+11
2009-04-06Merge branch 'mg/tracked-local-branches'Junio C Hamano1-2/+5
2009-04-01Merge branch 'kb/tracking-count-no-merges'Junio C Hamano1-1/+2
2009-04-01Make local branches behave like remote branches when --trackedMichael J Gruber1-2/+5
2009-03-20Merge branch 'xx/db-refspec-vs-js-remote'Junio C Hamano1-34/+54
2009-03-17Merge branch 'db/maint-missing-origin'Junio C Hamano1-3/+12
2009-03-17Merge branch 'js/remote-improvements'Junio C Hamano1-9/+136
2009-03-16Remove total confusion from git-fetch and git-pushJunio C Hamano1-18/+3
2009-03-14Remove unused assignmentsBenjamin Kramer1-1/+1
2009-03-10Give error when no remote is configuredDaniel Barkalow1-3/+27
2009-03-08Adjust js/remote-improvements and db/refspec-wildcard-in-the-middleJunio C Hamano1-9/+136
2009-03-07Support '*' in the middle of a refspecDaniel Barkalow1-7/+17
2009-03-07Keep '*' in pattern refspecsDaniel Barkalow1-15/+18
2009-03-07Use the matching function to generate the match resultsDaniel Barkalow1-22/+23
2009-03-07Use a single function to match names against patternsDaniel Barkalow1-3/+9
2009-03-04stat_tracking_info(): only count real commitsKjetil Barvik1-1/+2
2009-02-27remote: make guess_remote_head() use exact HEAD lookup if it is availableJeff King1-0/+8
2009-02-27remote: make match_refs() not short-circuitJay Soffian1-2/+4
2009-02-27remote: make match_refs() copy src ref before assigning to peer_refJay Soffian1-2/+5
2009-02-27remote: let guess_remote_head() optionally return all matchesJay Soffian1-10/+19
2009-02-27remote: make copy_ref() perform a deep copyJay Soffian1-5/+13
2009-02-26remote: simplify guess_remote_head()Jay Soffian1-23/+8
2009-02-26move locate_head() to remote.cJay Soffian1-0/+37
2009-02-26move duplicated ref_newer() to remote.cJay Soffian1-0/+49
2009-02-26move duplicated get_local_heads() to remote.cJay Soffian1-0/+26
2009-01-11add is_dot_or_dotdot inline functionAlexander Potashev1-4/+2
2008-11-12Merge branch 'mk/maint-cg-push'Junio C Hamano1-0/+11
2008-11-11git push: Interpret $GIT_DIR/branches in a Cogito compatible wayMartin Koegler1-0/+11
2008-11-11remote: add a new 'origin' variable to the structMiklos Vajna1-0/+3
2008-10-18make alloc_ref_from_str() the new alloc_ref()René Scharfe1-14/+7
2008-10-18use alloc_ref_from_str() everywhereRené Scharfe1-2/+1
2008-10-18add alloc_ref_with_prefix()René Scharfe1-16/+16
2008-10-17Merge branch 'maint'Junio C Hamano1-4/+5
2008-10-14remote.c: correct the check for a leading '/' in a remote nameBrandon Casey1-4/+5
2008-10-12Replace calls to strbuf_init(&foo, 0) with STRBUF_INIT initializerBrandon Casey1-2/+1
2008-10-08Replace xmalloc/memset(0) pairs with xcallocBrandon Casey1-2/+1
2008-09-25remote.c: make free_ref(), parse_push_refspec() and free_refspecs() static.Nanako Shiraishi1-3/+3
2008-09-09Use xmalloc() and friends to catch allocation failuresDotan Barak1-2/+2
2008-08-22remote.c: add a function for deleting a refspec array and use it (twice)Brandon Casey1-2/+27
2008-08-19remote.c: remove useless if-before-free testJim Meyering1-2/+1
2008-07-27make sure parsed wildcard refspec ends with slashJunio C Hamano1-18/+34
2008-07-16Reword "your branch has diverged..." lines to reduce line lengthAvery Pennarun1-16/+10
2008-07-03stat_tracking_info(): clear object flags used during countingJunio C Hamano1-0/+4
2008-07-02Refactor "tracking statistics" code used by "git checkout"Junio C Hamano1-0/+113
2008-06-18clean up error conventions of remote.c:match_explicitJeff King1-21/+11
2008-05-25Merge branch 'js/config-cb'Junio C Hamano1-2/+2
2008-05-25Merge branch 'db/clone-in-c'Junio C Hamano1-0/+10
2008-05-23Merge branch 'pb/push'Junio C Hamano1-27/+54
2008-05-14Provide git_config with a callback-data parameterJohannes Schindelin1-2/+2
2008-05-11alloc_ref_from_str(): factor out a common pattern of alloc_ref from stringKrzysztof Kowalczyk1-13/+10
2008-05-08Merge branch 'db/learn-HEAD'Junio C Hamano1-1/+22
2008-05-05Merge branch 'pb/remote-mirror-config'Junio C Hamano1-24/+29
2008-05-04Have a constant extern refspec for "--tags"Daniel Barkalow1-0/+9
2008-05-04add special "matching refs" refspecPaolo Bonzini1-27/+54
2008-04-26Make ls-remote http://... list HEAD, like for git://...Daniel Barkalow1-1/+22
2008-04-24push: allow unqualified dest refspecs to DWIMJeff King1-3/+29
2008-04-20Add a remote.*.mirror configuration optionPaolo Bonzini1-24/+29
2008-04-18git-remote: reject adding remotes with invalid namesJonas Fonseca1-3/+18
2008-04-12Fix config key miscount in url.*.insteadOfDaniel Barkalow1-1/+1
2008-03-26Merge branch 'jc/maint-fetch-regression-1.5.4'Junio C Hamano1-6/+22
2008-03-26Fix branches file configurationDaniel Barkalow1-6/+22
2008-03-26Tighten refspec processingDaniel Barkalow1-39/+137
2008-03-25refspec: allow colon-less wildcard "refs/category/*"Junio C Hamano1-7/+11
2008-03-22remote.c: Fix overtight refspec validationJunio C Hamano1-46/+111
2008-03-18Tighten refspec processingDaniel Barkalow1-9/+38
2008-03-01Make git-remote a builtinJohannes Schindelin1-1/+2