From d53fe8187c38a5a160ef2199a899d9c47ec881b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Tue, 15 Jul 2008 09:49:38 +0200 Subject: archive: add baselen member to struct archiver_args Calculate the length of base and save it in a new member of struct archiver_args. This way we don't have to compute it in each of the format backends. Note: parse_archive_args() guarantees that ->base won't ever be NULL. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- archive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'archive.h') diff --git a/archive.h b/archive.h index 1b24ae310d..34151f41b4 100644 --- a/archive.h +++ b/archive.h @@ -6,6 +6,7 @@ struct archiver_args { const char *base; + size_t baselen; struct tree *tree; const unsigned char *commit_sha1; const struct commit *commit; -- cgit v1.2.3