| 820 | } |
| 821 | |
| 822 | static void send_shallow(struct upload_pack_data *data, |
| 823 | struct commit_list *result) |
| 824 | { |
| 825 | while (result) { |
| 826 | struct object *object = &result->item->object; |
| 827 | if (!(object->flags & (CLIENT_SHALLOW|NOT_SHALLOW))) { |
| 828 | packet_writer_write(&data->writer, "shallow %s", |
| 829 | oid_to_hex(&object->oid)); |
| 830 | register_shallow(the_repository, &object->oid); |
| 831 | data->shallow_nr++; |
| 832 | } |
| 833 | result = result->next; |
| 834 | } |
| 835 | } |
| 836 | |
| 837 | static void send_unshallow(struct upload_pack_data *data) |
| 838 | { |
no test coverage detected