Code

archive: add baselen member to struct archiver_args
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Tue, 15 Jul 2008 07:49:38 +0000 (09:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2008 14:18:04 +0000 (07:18 -0700)
commitd53fe8187c38a5a160ef2199a899d9c47ec881b9
treee692814e75ece9695971380addbdb67ec983bb69
parent671f0707212c929533dc6ec9e032faee328e4602
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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-tar.c
archive-zip.c
archive.h
builtin-archive.c