| 146 | } |
| 147 | |
| 148 | static int ls_refs_config(const char *var, const char *value, |
| 149 | const struct config_context *ctx UNUSED, |
| 150 | void *cb_data) |
| 151 | { |
| 152 | struct ls_refs_data *data = cb_data; |
| 153 | /* |
| 154 | * We only serve fetches over v2 for now, so respect only "uploadpack" |
| 155 | * config. This may need to eventually be expanded to "receive", but we |
| 156 | * don't yet know how that information will be passed to ls-refs. |
| 157 | */ |
| 158 | return parse_hide_refs_config(var, value, "uploadpack", &data->hidden_refs); |
| 159 | } |
| 160 | |
| 161 | int ls_refs(struct repository *r, struct packet_reader *request) |
| 162 | { |
nothing calls this directly
no test coverage detected