| 2870 | } |
| 2871 | |
| 2872 | struct remote_state *remote_state_new(void) |
| 2873 | { |
| 2874 | struct remote_state *r; |
| 2875 | |
| 2876 | CALLOC_ARRAY(r, 1); |
| 2877 | |
| 2878 | hashmap_init(&r->remotes_hash, remotes_hash_cmp, NULL, 0); |
| 2879 | hashmap_init(&r->branches_hash, branches_hash_cmp, NULL, 0); |
| 2880 | return r; |
| 2881 | } |
| 2882 | |
| 2883 | void remote_state_clear(struct remote_state *remote_state) |
| 2884 | { |
no test coverage detected