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

Function send_shallow

upload-pack.c:822–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822static 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
837static void send_unshallow(struct upload_pack_data *data)
838{

Callers 2

deepenFunction · 0.85
deepen_by_rev_listFunction · 0.85

Calls 3

packet_writer_writeFunction · 0.85
oid_to_hexFunction · 0.85
register_shallowFunction · 0.85

Tested by

no test coverage detected