diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2008-07-15 09:49:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-15 07:18:04 -0700 |
commit | d53fe8187c38a5a160ef2199a899d9c47ec881b9 (patch) | |
tree | e692814e75ece9695971380addbdb67ec983bb69 /archive.h | |
parent | 671f0707212c929533dc6ec9e032faee328e4602 (diff) | |
download | git-d53fe8187c38a5a160ef2199a899d9c47ec881b9.tar.gz git-d53fe8187c38a5a160ef2199a899d9c47ec881b9.tar.xz |
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>
Diffstat (limited to 'archive.h')
-rw-r--r-- | archive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |