| 635 | } |
| 636 | |
| 637 | static 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 | |
| 657 | static struct archiver zip_archiver = { |
| 658 | .name = "zip", |
nothing calls this directly
no test coverage detected