зеркало из https://github.com/microsoft/git.git
archive-*.c: use designated initializers for "struct archiver"
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
0cb9872eab
Коммит
4fbedd4dc0
|
@ -461,9 +461,9 @@ static int write_tar_filter_archive(const struct archiver *ar,
|
|||
}
|
||||
|
||||
static struct archiver tar_archiver = {
|
||||
"tar",
|
||||
write_tar_archive,
|
||||
ARCHIVER_REMOTE
|
||||
.name = "tar",
|
||||
.write_archive = write_tar_archive,
|
||||
.flags = ARCHIVER_REMOTE,
|
||||
};
|
||||
|
||||
void init_tar_archiver(void)
|
||||
|
|
|
@ -637,9 +637,9 @@ static int write_zip_archive(const struct archiver *ar,
|
|||
}
|
||||
|
||||
static struct archiver zip_archiver = {
|
||||
"zip",
|
||||
write_zip_archive,
|
||||
ARCHIVER_WANT_COMPRESSION_LEVELS|ARCHIVER_REMOTE
|
||||
.name = "zip",
|
||||
.write_archive = write_zip_archive,
|
||||
.flags = ARCHIVER_WANT_COMPRESSION_LEVELS|ARCHIVER_REMOTE,
|
||||
};
|
||||
|
||||
void init_zip_archiver(void)
|
||||
|
|
Загрузка…
Ссылка в новой задаче