diff options
author | Brandon Williams <bmwill@google.com> | 2018-05-17 00:58:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-17 23:19:43 +0200 |
commit | a2ac50cbfd232b5739bafaf6bfdb80c13633b732 (patch) | |
tree | 6941b1823ac21d0303f8d6eb99f7e366bd20bbca /builtin/remote.c | |
parent | fetch: convert prune_refs to take a struct refspec (diff) | |
download | git-a2ac50cbfd232b5739bafaf6bfdb80c13633b732.tar.xz git-a2ac50cbfd232b5739bafaf6bfdb80c13633b732.zip |
remote: convert get_stale_heads to take a struct refspec
Convert 'get_stale_heads()' to take a 'struct refspec' as a parameter instead
of a list of 'struct refspec_item'.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/remote.c')
-rw-r--r-- | builtin/remote.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index 94dfcb78b2..b8e66589f1 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -347,8 +347,7 @@ static int get_ref_states(const struct ref *remote_refs, struct ref_states *stat else string_list_append(&states->tracked, abbrev_branch(ref->name)); } - stale_refs = get_stale_heads(states->remote->fetch.items, - states->remote->fetch.nr, fetch_map); + stale_refs = get_stale_heads(&states->remote->fetch, fetch_map); for (ref = stale_refs; ref; ref = ref->next) { struct string_list_item *item = string_list_append(&states->stale, abbrev_branch(ref->name)); |