From: "Kristian Høgsberg" <krh@redhat.com>
To: Marco Costalba <mcostalba@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH 2/5] Use new compress helpers in git files
Date: Fri, 11 Jan 2008 10:29:17 -0500 [thread overview]
Message-ID: <1200065357.18570.2.camel@gaara.boston.redhat.com> (raw)
In-Reply-To: <e5bfff550801102337w1afc6c88n2c60f26fa80d8da4@mail.gmail.com>
On Fri, 2008-01-11 at 08:37 +0100, Marco Costalba wrote:
> These are the 'easy' ones, where a signgle step
> compression is requested so that we can use only
> one call to compress_all()
>
> Signed-off-by: Marco Costalba <mcostalba@gmail.com>
> ---
> archive-zip.c | 28 +++-------------------------
> builtin-pack-objects.c | 21 ++++-----------------
> diff.c | 22 +++++-----------------
> index-pack.c | 20 +++-----------------
> 4 files changed, 15 insertions(+), 76 deletions(-)
>
> diff --git a/archive-zip.c b/archive-zip.c
> index 74e30f6..9071b86 100644
> --- a/archive-zip.c
> +++ b/archive-zip.c
> @@ -3,6 +3,7 @@
> */
> #include "cache.h"
> #include "commit.h"
> +#include "compress.h"
> #include "blob.h"
> #include "tree.h"
> #include "quote.h"
> @@ -97,33 +98,10 @@ static void copy_le32(unsigned char *dest,
> static void *zlib_deflate(void *data, unsigned long size,
> unsigned long *compressed_size)
> {
How about just getting rid of this function alltogether, since it seems
to do more or less the same as your new compress_all() function? Just
change the call-sites of zlib_deflate() to call compress_all() instead.
> @@ -1037,23 +1038,10 @@ static unsigned char *deflate_it(char *data,
> unsigned long size,
> unsigned long *result_size)
> {
Same here.
cheers,
Kristian
prev parent reply other threads:[~2008-01-11 15:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-11 7:37 [PATCH 2/5] Use new compress helpers in git files Marco Costalba
2008-01-11 15:29 ` Kristian Høgsberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1200065357.18570.2.camel@gaara.boston.redhat.com \
--to=krh@redhat.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mcostalba@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).