MCPcopy Index your code
hub / github.com/git/git / process_ls_object

Function process_ls_object

http-push.c:1041–1057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041static void process_ls_object(struct remote_ls_ctx *ls)
1042{
1043 unsigned int *parent = (unsigned int *)ls->userData;
1044 const char *path = ls->dentry_name;
1045 struct object_id oid;
1046
1047 if (!strcmp(ls->path, ls->dentry_name) && (ls->flags & IS_DIR)) {
1048 remote_dir_exists[*parent] = 1;
1049 return;
1050 }
1051
1052 if (!skip_prefix(path, "objects/", &path) ||
1053 get_oid_hex_from_objpath(path, &oid))
1054 return;
1055
1056 one_remote_object(&oid);
1057}
1058
1059static void process_ls_ref(struct remote_ls_ctx *ls)
1060{

Callers

nothing calls this directly

Calls 2

get_oid_hex_from_objpathFunction · 0.85
one_remote_objectFunction · 0.85

Tested by

no test coverage detected