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

Function write_zip_archive

archive-zip.c:637–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637static int write_zip_archive(const struct archiver *ar UNUSED,
638 struct archiver_args *args)
639{
640 int err;
641
642 repo_config(the_repository, archive_zip_config, NULL);
643
644 dos_time(&args->time, &zip_date, &zip_time);
645
646 strbuf_init(&zip_dir, 0);
647
648 err = write_archive_entries(args, write_zip_entry);
649 if (!err)
650 write_zip_trailer(args->commit_oid);
651
652 strbuf_release(&zip_dir);
653
654 return err;
655}
656
657static struct archiver zip_archiver = {
658 .name = "zip",

Callers

nothing calls this directly

Calls 6

dos_timeFunction · 0.85
strbuf_initFunction · 0.85
write_archive_entriesFunction · 0.85
write_zip_trailerFunction · 0.85
strbuf_releaseFunction · 0.85
repo_configFunction · 0.70

Tested by

no test coverage detected