MCPcopy Create free account
hub / github.com/git/git / check_if_includes_upstream

Function check_if_includes_upstream

remote.c:2807–2816  ·  view source on GitHub ↗

* Check for reachability of a remote-tracking * ref in the reflog entries of its local ref. */

Source from the content-addressed store, hash-verified

2805 * ref in the reflog entries of its local ref.
2806 */
2807static void check_if_includes_upstream(struct ref *remote)
2808{
2809 struct ref *local = get_local_ref(remote->name);
2810 if (!local)
2811 return;
2812
2813 if (is_reachable_in_reflog(local->name, remote) <= 0)
2814 remote->unreachable = 1;
2815 free_one_ref(local);
2816}
2817
2818static void apply_cas(struct push_cas_option *cas,
2819 struct remote *remote,

Callers 1

apply_push_casFunction · 0.85

Calls 3

get_local_refFunction · 0.85
is_reachable_in_reflogFunction · 0.85
free_one_refFunction · 0.85

Tested by

no test coverage detected