archive: rename archiver data field to filter_command

The void pointer "data" in struct archiver is only used to store filter
commands to pass tar archives to, like gzip.  Rename it accordingly and
also turn it into a char pointer to document the fact that it's a string
reference.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe
2022-06-15 18:59:57 +02:00
committed by Junio C Hamano
parent 650134a478
commit 96b9e5151b
2 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ struct archiver {
const char *name;
int (*write_archive)(const struct archiver *, struct archiver_args *);
unsigned flags;
void *data;
char *filter_command;
};
void register_archiver(struct archiver *);