# [PATCH 0/6] archive: refactor and cleanup

5 messages from 2008-07-14 to 2008-07-15. Participants: René Scharfe, Lea Wiemann, Junio C Hamano.
Thread: https://gitlist.dev/t/14452

## René Scharfe, 2008-07-14 19:21

Subject: [PATCH 0/6] archive: refactor and cleanup
Message-ID: <487BA74E.5070208@lsrfire.ath.cx>
URL: https://gitlist.dev/e/487BA74E.5070208%40lsrfire.ath.cx

```
This series is a collection of cleanups for git archive that I finally need
to get out, reviewed and (hopefully!) integrated.  It should make adding
more format backends easier.

Patch 2 adds a context parameter to read_tree_recursive(), thus affecting
all its callers.  The rest of the patches change *archive*.[ch], only.

René



 archive-tar.c             |  115 ++++++++++++---------------------------
 archive-zip.c             |  102 +++++------------------------------
 archive.c                 |  132 ++++++++++++++++++++++++++++++++------------
 archive.h                 |   15 ++----
 builtin-archive.c         |   75 ++++++++++++--------------
 builtin-checkout.c        |    4 +-
 builtin-log.c             |    4 +-
 builtin-ls-tree.c         |    4 +-
 builtin-merge-recursive.c |    4 +-
 builtin-upload-archive.c  |   11 ++--
 tree.c                    |   12 ++--
 tree.h                    |    4 +-
 12 files changed, 208 insertions(+), 274 deletions(-)

```

## Lea Wiemann, 2008-07-14 23:41

Subject: Re: [PATCH 0/6] archive: refactor and cleanup
Message-ID: <487BE440.9010006@gmail.com>
URL: https://gitlist.dev/e/487BE440.9010006%40gmail.com
In-Reply-To: <487BA74E.5070208@lsrfire.ath.cx>

```
René Scharfe wrote:
> This series is a collection of cleanups for git archive

A few things:

* The note quoted above probably shouldn't be in the commit message but
after the "---".

* You patch messages seem to be In-Reply-To a message that wasn't posted
on the list, not to PATCH 0/6.

* Unless you have a specific reason, I suggest that you don't Cc Junio
on patches; he reads all messages on this list (more or less) and will
usually simply apply your patches once they're reviewed.  (Watch for his
periodical "What's cooking in git.git" messages to see if he got them.)

* And most importantly, your Thunderbird introduced line-breaks, so it's
not possible to apply the patches.  May I suggest you use git-send-email
instead?

Feel free to ping me on IRC (lea_w in #git) if you need help.

```

## Lea Wiemann, 2008-07-15 00:27

Subject: Re: [PATCH 0/6] archive: refactor and cleanup
Message-ID: <487BEEED.8030104@gmail.com>
URL: https://gitlist.dev/e/487BEEED.8030104%40gmail.com
In-Reply-To: <487BE440.9010006@gmail.com>

```
Lea Wiemann wrote:
> * Unless you have a specific reason, I suggest that you don't Cc Junio
> on patches; he reads all messages on this list (more or less) and will
> usually simply apply your patches once they're reviewed.  (Watch for his
> periodical "What's cooking in git.git" messages to see if he got them.)

Uh, I just noticed that you have enough commits in git.git that you
probably didn't need this lecture. ;-)  Sorry, Rene.  (Thanks Dscho for
the pointer.)

```

## René Scharfe, 2008-07-15 07:49

Subject: Re: [PATCH 0/6] archive: refactor and cleanup
Message-ID: <487C568F.6030705@lsrfire.ath.cx>
URL: https://gitlist.dev/e/487C568F.6030705%40lsrfire.ath.cx
In-Reply-To: <487BE440.9010006@gmail.com>

```
Lea Wiemann schrieb:
> René Scharfe wrote:
>> This series is a collection of cleanups for git archive
> 
> A few things:
> 
> * The note quoted above probably shouldn't be in the commit message but
> after the "---".

Since it's in the zeroth message, it's not intended to be committed.

> * You patch messages seem to be In-Reply-To a message that wasn't posted
> on the list, not to PATCH 0/6.

Hmm, that's strange.  Won't happen next time, though.

> * Unless you have a specific reason, I suggest that you don't Cc Junio
> on patches; he reads all messages on this list (more or less) and will
> usually simply apply your patches once they're reviewed.  (Watch for his
> periodical "What's cooking in git.git" messages to see if he got them.)

We're both wrong, quoth Documentation/SubmittingPatches:

    Note that your maintainer does not necessarily read everything
    on the git mailing list.  If your patch is for discussion first,
    send it "To:" the mailing list, and optionally "cc:" him.  If it
    is trivially correct or after the list reached a consensus, send
    it "To:" the maintainer and optionally "cc:" the list.

Obviously, my patches weren't trivially correct nor a consensus reached.

> * And most importantly, your Thunderbird introduced line-breaks, so it's
> not possible to apply the patches.  May I suggest you use git-send-email
> instead?

Well, it is possible to send usable patches with Thunderbird, using the
extension Toggle Word Wrap.  Patches 1 and 3 are damaged because I
edited them again to correct a typo -- with word wrap accidentally on.

Trying git-send-email again is a good idea, though.

> Feel free to ping me on IRC (lea_w in #git) if you need help.

I've slacked long enough to become a complete noob again.  Oh, well.

Thanks,
René

```

## Junio C Hamano, 2008-07-15 15:21

Subject: Re: [PATCH 0/6] archive: refactor and cleanup
Message-ID: <7vtzer2mwd.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vtzer2mwd.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <487C568F.6030705@lsrfire.ath.cx>

```
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:

> Lea Wiemann schrieb:
> ...
>> Feel free to ping me on IRC (lea_w in #git) if you need help.
>
> I've slacked long enough to become a complete noob again.  Oh, well.

Lol ;-)

The series looks good.  Thanks.

```
