author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Tue, 15 Jul 2008 07:49:38 +0000 (09:49 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Jul 2008 14:18:04 +0000 (07:18 -0700) | ||
commit | d53fe8187c38a5a160ef2199a899d9c47ec881b9 | |
tree | e692814e75ece9695971380addbdb67ec983bb69 | tree | snapshot |
parent | 671f0707212c929533dc6ec9e032faee328e4602 | commit | diff |
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>
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 | diff | blob | history | |
archive-zip.c | diff | blob | history | |
archive.h | diff | blob | history | |
builtin-archive.c | diff | blob | history |