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

Function attempt_unbundle

bundle-uri.c:813–826  ·  view source on GitHub ↗

* This loop iterator breaks the loop with nonzero return code on the * first successful unbundling of a bundle. */

Source from the content-addressed store, hash-verified

811 * first successful unbundling of a bundle.
812 */
813static int attempt_unbundle(struct remote_bundle_info *info, void *data)
814{
815 struct repository *r = data;
816
817 if (!info->file || info->unbundled)
818 return 0;
819
820 if (!unbundle_from_file(r, info->file)) {
821 info->unbundled = 1;
822 return 1;
823 }
824
825 return 0;
826}
827
828static int unbundle_all_bundles(struct repository *r,
829 struct bundle_list *list)

Callers

nothing calls this directly

Calls 1

unbundle_from_fileFunction · 0.85

Tested by

no test coverage detected