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

Function add_index_pack_keep_option

fetch-pack.c:943–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943static void add_index_pack_keep_option(struct strvec *args)
944{
945 char hostname[HOST_NAME_MAX + 1];
946
947 if (xgethostname(hostname, sizeof(hostname)))
948 xsnprintf(hostname, sizeof(hostname), "localhost");
949 strvec_pushf(args, "--keep=fetch-pack %"PRIuMAX " on %s",
950 (uintmax_t)getpid(), hostname);
951}
952
953/*
954 * If packfile URIs were provided, pass a non-NULL pointer to index_pack_args.

Callers 1

get_packFunction · 0.85

Calls 3

xgethostnameFunction · 0.85
xsnprintfFunction · 0.85
strvec_pushfFunction · 0.85

Tested by

no test coverage detected