summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2022-06-15 18:59:57 +0200
committerJunio C Hamano <gitster@pobox.com>2022-06-15 13:19:46 -0700
commit96b9e5151bf0cad110d2f0bf16f413b9fc9f606c (patch)
treedfe85a14a52cf431f6ff38e5954c1c62df96ed16 /archive.h
parent650134a47894244b3804b5d175439b362453fa4a (diff)
downloadgit-96b9e5151bf0cad110d2f0bf16f413b9fc9f606c.tar.gz
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>
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive.h b/archive.h
index 49fab71aaf..08bed3ed3a 100644
--- a/archive.h
+++ b/archive.h
@@ -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 *);