refspec 9 branch.c struct refspec spec; refspec 183 branch.c struct refspec query; refspec 184 branch.c memset(&query, 0, sizeof(struct refspec)); refspec 866 builtin/checkout.c struct refspec query; refspec 867 builtin/checkout.c memset(&query, 0, sizeof(struct refspec)); refspec 513 builtin/clone.c struct refspec *refspec) refspec 534 builtin/clone.c get_fetch_map(remote_head, refspec, &tail, 0); refspec 540 builtin/clone.c get_fetch_map(refs, refspec, &tail, 0); refspec 830 builtin/clone.c struct refspec *refspec; refspec 963 builtin/clone.c refspec = parse_fetch_refspec(1, &fetch_pattern); refspec 1007 builtin/clone.c mapped_refs = wanted_peer_refs(refs, refspec); refspec 1088 builtin/clone.c free(refspec); refspec 37 builtin/fast-export.c static struct refspec *refspecs; refspec 961 builtin/fast-export.c struct refspec *refspec = &refspecs[i]; refspec 962 builtin/fast-export.c if (*refspec->src) refspec 966 builtin/fast-export.c refspec->dst, sha1_to_hex(null_sha1)); refspec 154 builtin/fetch.c struct refspec refspec; refspec 175 builtin/fetch.c memset(&refspec, 0, sizeof(refspec)); refspec 176 builtin/fetch.c refspec.src = branch->merge[i]->src; refspec 177 builtin/fetch.c get_fetch_map(remote_refs, &refspec, tail, 1); refspec 286 builtin/fetch.c struct refspec *refspecs, int refspec_count, refspec 300 builtin/fetch.c struct refspec *fetch_refspec; refspec 771 builtin/fetch.c static int prune_refs(struct refspec *refs, int ref_count, struct ref *ref_map, refspec 892 builtin/fetch.c struct refspec *refs, int ref_count) refspec 1086 builtin/fetch.c struct refspec *refspec; refspec 1126 builtin/fetch.c refspec = parse_fetch_refspec(ref_nr, refs); refspec 1127 builtin/fetch.c exit_code = do_fetch(gtransport, refspec, ref_nr); refspec 1128 builtin/fetch.c free_refspec(ref_nr, refspec); refspec 649 builtin/pull.c static const char *get_tracking_branch(const char *remote, const char *refspec) refspec 651 builtin/pull.c struct refspec *spec; refspec 655 builtin/pull.c spec = parse_fetch_refspec(1, &refspec); refspec 686 builtin/pull.c const char *refspec) refspec 698 builtin/pull.c if (refspec) refspec 699 builtin/pull.c remote_branch = get_tracking_branch(repo, refspec); refspec 27 builtin/push.c static const char **refspec; refspec 34 builtin/push.c ALLOC_GROW(refspec, refspec_nr, refspec_alloc); refspec 35 builtin/push.c refspec[refspec_nr-1] = ref; refspec 48 builtin/push.c struct refspec query; refspec 49 builtin/push.c memset(&query, 0, sizeof(struct refspec)); refspec 167 builtin/push.c struct strbuf refspec = STRBUF_INIT; refspec 194 builtin/push.c strbuf_addf(&refspec, "%s:%s", branch->name, branch->merge[0]->src); refspec 195 builtin/push.c add_refspec(refspec.buf); refspec 362 builtin/push.c err = transport_push(transport, refspec_nr, refspec, flags, refspec 409 builtin/push.c if ((flags & TRANSPORT_PUSH_ALL) && refspec) { refspec 410 builtin/push.c if (!strcmp(*refspec, "refs/tags/*")) refspec 415 builtin/push.c if ((flags & TRANSPORT_PUSH_MIRROR) && refspec) { refspec 416 builtin/push.c if (!strcmp(*refspec, "refs/tags/*")) refspec 426 builtin/push.c if (!refspec && !(flags & TRANSPORT_PUSH_ALL)) { refspec 428 builtin/push.c refspec = remote->push_refspec; refspec 442 builtin/remote.c struct refspec *spec = remote->push + i; refspec 462 builtin/remote.c struct refspec refspec; refspec 464 builtin/remote.c refspec.force = 0; refspec 465 builtin/remote.c refspec.pattern = 1; refspec 466 builtin/remote.c refspec.src = refspec.dst = "refs/heads/*"; refspec 468 builtin/remote.c get_fetch_map(remote_refs, &refspec, &fetch_map_tail, 0); refspec 515 builtin/remote.c struct refspec refspec; refspec 518 builtin/remote.c memset(&refspec, 0, sizeof(refspec)); refspec 519 builtin/remote.c refspec.dst = (char *)refname; refspec 520 builtin/remote.c if (remote_find_tracking(branches->remote, &refspec)) refspec 525 builtin/remote.c memset(&refspec, 0, sizeof(refspec)); refspec 526 builtin/remote.c refspec.dst = (char *)refname; refspec 527 builtin/remote.c if (!remote_find_tracking(kr->remote, &refspec)) refspec 847 builtin/remote.c struct refspec refspec; refspec 852 builtin/remote.c memset(&refspec, 0, sizeof(refspec)); refspec 853 builtin/remote.c refspec.dst = (char *)refname; refspec 854 builtin/remote.c if (!remote_find_tracking(states->remote, &refspec)) refspec 855 builtin/remote.c string_list_append(&states->tracked, abbrev_branch(refspec.src)); refspec 1414 builtin/remote.c struct strbuf refspec = STRBUF_INIT; refspec 1417 builtin/remote.c if (add_branch(key, *branches, remotename, mirror, &refspec)) { refspec 1418 builtin/remote.c strbuf_release(&refspec); refspec 1422 builtin/remote.c strbuf_release(&refspec); refspec 1719 http-push.c char **refspec = NULL; refspec 1786 http-push.c refspec = argv; refspec 1844 http-push.c if (delete_remote_branch(refspec[0], force_delete) == -1) { refspec 1846 http-push.c refspec[0]); refspec 1848 http-push.c printf("error %s cannot remove\n", refspec[0]); refspec 1855 http-push.c nr_refspec, (const char **) refspec, push_all)) { refspec 14 remote.c static struct refspec s_tag_refspec = { refspec 23 remote.c const struct refspec *tag_refspec = &s_tag_refspec; refspec 519 remote.c static void free_refspecs(struct refspec *refspec, int nr_refspec) refspec 523 remote.c if (!refspec) refspec 527 remote.c free(refspec[i].src); refspec 528 remote.c free(refspec[i].dst); refspec 530 remote.c free(refspec); refspec 533 remote.c static struct refspec *parse_refspec_internal(int nr_refspec, const char **refspec, int fetch, int verify) refspec 536 remote.c struct refspec *rs = xcalloc(nr_refspec, sizeof(*rs)); refspec 546 remote.c lhs = refspec[i]; refspec 649 remote.c die("Invalid refspec '%s'", refspec[i]); refspec 654 remote.c struct refspec *refspec; refspec 656 remote.c refspec = parse_refspec_internal(1, &fetch_refspec_str, 1, 1); refspec 657 remote.c free_refspecs(refspec, 1); refspec 658 remote.c return !!refspec; refspec 661 remote.c struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec) refspec 663 remote.c return parse_refspec_internal(nr_refspec, refspec, 1, 0); refspec 666 remote.c static struct refspec *parse_push_refspec(int nr_refspec, const char **refspec) refspec 668 remote.c return parse_refspec_internal(nr_refspec, refspec, 0, 0); refspec 671 remote.c void free_refspec(int nr_refspec, struct refspec *refspec) refspec 675 remote.c free(refspec[i].src); refspec 676 remote.c free(refspec[i].dst); refspec 678 remote.c free(refspec); refspec 887 remote.c static void query_refspecs_multiple(struct refspec *refs, int ref_count, struct refspec *query, struct string_list *results) refspec 896 remote.c struct refspec *refspec = &refs[i]; refspec 897 remote.c const char *key = find_src ? refspec->dst : refspec->src; refspec 898 remote.c const char *value = find_src ? refspec->src : refspec->dst; refspec 902 remote.c if (!refspec->dst) refspec 904 remote.c if (refspec->pattern) { refspec 913 remote.c int query_refspecs(struct refspec *refs, int ref_count, struct refspec *query) refspec 924 remote.c struct refspec *refspec = &refs[i]; refspec 925 remote.c const char *key = find_src ? refspec->dst : refspec->src; refspec 926 remote.c const char *value = find_src ? refspec->src : refspec->dst; refspec 928 remote.c if (!refspec->dst) refspec 930 remote.c if (refspec->pattern) { refspec 932 remote.c query->force = refspec->force; refspec 937 remote.c query->force = refspec->force; refspec 944 remote.c char *apply_refspecs(struct refspec *refspecs, int nr_refspec, refspec 947 remote.c struct refspec query; refspec 949 remote.c memset(&query, 0, sizeof(struct refspec)); refspec 958 remote.c int remote_find_tracking(struct remote *remote, struct refspec *refspec) refspec 960 remote.c return query_refspecs(remote->fetch, remote->fetch_refspec_nr, refspec); refspec 1168 remote.c struct refspec *rs, refspec 1194 remote.c struct refspec *rs) refspec 1263 remote.c struct ref ***dst_tail, struct refspec *rs, refspec 1272 remote.c static char *get_ref_match(const struct refspec *rs, int rs_nr, const struct ref *ref, refspec 1273 remote.c int send_mirror, int direction, const struct refspec **ret_pat) refspec 1275 remote.c const struct refspec *pat; refspec 1445 remote.c struct refspec *refspec = parse_push_refspec(nr_refspec, refspec_names); refspec 1450 remote.c struct refspec *rs = refspec + i; refspec 1458 remote.c free_refspec(nr_refspec, refspec); refspec 1471 remote.c int nr_refspec, const char **refspec, int flags) refspec 1473 remote.c struct refspec *rs; refspec 1484 remote.c refspec = default_refspec; refspec 1486 remote.c rs = parse_push_refspec(nr_refspec, (const char **) refspec); refspec 1493 remote.c const struct refspec *pat = NULL; refspec 1850 remote.c const struct refspec *refspec) refspec 1861 remote.c if (match_name_with_pattern(refspec->src, ref->name, refspec 1862 remote.c refspec->dst, &expn_name) && refspec 1867 remote.c if (refspec->force) refspec 1915 remote.c const struct refspec *refspec, refspec 1921 remote.c if (refspec->pattern) { refspec 1922 remote.c ref_map = get_expanded_map(remote_refs, refspec); refspec 1924 remote.c const char *name = refspec->src[0] ? refspec->src : "HEAD"; refspec 1926 remote.c if (refspec->exact_sha1) { refspec 1935 remote.c ref_map->peer_ref = get_local_ref(refspec->dst); refspec 1936 remote.c if (ref_map->peer_ref && refspec->force) refspec 2243 remote.c struct refspec *refs; refspec 2252 remote.c struct refspec query; refspec 2254 remote.c memset(&query, 0, sizeof(struct refspec)); refspec 2285 remote.c struct ref *get_stale_heads(struct refspec *refs, int ref_count, struct ref *fetch_map) refspec 30 remote.h struct refspec *push; refspec 35 remote.h struct refspec *fetch; refspec 78 remote.h extern const struct refspec *tag_refspec; refspec 164 remote.h int valid_fetch_refspec(const char *refspec); refspec 165 remote.h struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec); refspec 167 remote.h void free_refspec(int nr_refspec, struct refspec *refspec); refspec 169 remote.h extern int query_refspecs(struct refspec *specs, int nr, struct refspec *query); refspec 170 remote.h char *apply_refspecs(struct refspec *refspecs, int nr_refspec, refspec 173 remote.h int check_push_refs(struct ref *src, int nr_refspec, const char **refspec); refspec 175 remote.h int nr_refspec, const char **refspec, int all); refspec 191 remote.h int get_fetch_map(const struct ref *remote_refs, const struct refspec *refspec, refspec 199 remote.h int remote_find_tracking(struct remote *remote, struct refspec *refspec); refspec 209 remote.h struct refspec **merge; refspec 268 remote.h struct ref *get_stale_heads(struct refspec *refs, int ref_count, struct ref *fetch_map); refspec 35 transport-helper.c struct refspec *refspecs; refspec 302 transport.c int refspec_nr, const char **refspec) refspec 310 transport.c if (dwim_ref(refspec[i], strlen(refspec[i]), oid.hash, &ref) != 1) refspec 311 transport.c return error("Could not get ref %s", refspec[i]); refspec 323 transport.c int refspec_nr, const char **refspec, int flags) refspec 368 transport.c } else if (write_refs_to_temp_dir(&temp_dir, refspec_nr, refspec)) refspec 596 transport.c struct refspec rs; refspec 1162 transport.c int refspec_nr, const char **refspec, int flags, refspec 1166 transport.c transport_verify_remote_names(refspec_nr, refspec); refspec 1173 transport.c return transport->push(transport, refspec_nr, refspec, flags); refspec 1184 transport.c if (check_push_refs(local_refs, refspec_nr, refspec) < 0) refspec 1199 transport.c refspec_nr, refspec, match_flags)) { refspec 89 transport.h int (*push)(struct transport *connection, int refspec_nr, const char **refspec, int flags); refspec 199 transport.h int refspec_nr, const char **refspec, int flags,