git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Sverre Rabbelier" <alturin@gmail.com>
To: "Asheesh Laroia" <asheesh@asheesh.org>
Cc: "Karl Hasselström" <kha@treskal.com>,
	"Clark Williams" <clark.williams@gmail.com>,
	"Catalin Marinas" <catalin.marinas@gmail.com>,
	git@vger.kernel.org
Subject: Re: [PATCH - stgit] Patch to allow import of compressed files
Date: Tue, 10 Jun 2008 10:07:25 +0200	[thread overview]
Message-ID: <bd6139dc0806100107y415a292eqe22af7a7b2215e65@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0806092335420.17180@swallowtail>

On Tue, Jun 10, 2008 at 8:38 AM, Asheesh Laroia <asheesh@asheesh.org> wrote:
> Peanut gallery question: Why not just always try these methods and catch
> some format exception if they fail, proceeding to the next possible
> decompressor (proceeding on to no decompressor)?
>
> That way if a file is called .GZ, it will still be handled properly; in
> fact, all files would still be handled properly.  And these formats leave
> notes in the first few bytes of the file as to if they should be tried, so
> it's not as if it would come at some performance cost.

How about adding in '.tar' decompression as well, -after- the '.gz'
decompression? That way you can have .tar.gz's and still be fine.

-- 
Cheers,

Sverre Rabbelier

  reply	other threads:[~2008-06-10  8:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 18:38 [PATCH - stgit] Patch to allow import of compressed files Clark Williams
2008-06-10  6:33 ` Karl Hasselström
2008-06-10  6:38   ` Asheesh Laroia
2008-06-10  8:07     ` Sverre Rabbelier [this message]
2008-06-10  9:53       ` Karl Hasselström
2008-06-10  9:57         ` Sverre Rabbelier
2008-06-10 10:28           ` Karl Hasselström
2008-06-10 10:33             ` Sverre Rabbelier
2008-06-10 14:06               ` Clark Williams
2008-06-10 14:01       ` Clark Williams
2008-06-10 13:57     ` Clark Williams
2008-06-10 14:04       ` Asheesh Laroia
2008-06-10 13:54   ` Clark Williams
2008-06-10 13:54   ` Clark Williams
2008-06-11  6:27     ` Karl Hasselström
2008-06-11 17:28       ` Clark Williams
2008-06-11 19:14         ` Karl Hasselström
2008-06-19 14:17   ` David Kågedal

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=bd6139dc0806100107y415a292eqe22af7a7b2215e65@mail.gmail.com \
    --to=alturin@gmail.com \
    --cc=asheesh@asheesh.org \
    --cc=catalin.marinas@gmail.com \
    --cc=clark.williams@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=kha@treskal.com \
    --cc=sverre@rabbelier.nl \
    /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).