git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Add git-zip-tree to .gitignore
Date: Tue, 29 Aug 2006 00:28:19 +0200	[thread overview]
Message-ID: <44F36E03.9090802@lsrfire.ath.cx> (raw)
In-Reply-To: <7vhczxvlar.fsf@assigned-by-dhcp.cox.net>

Junio C Hamano schrieb:
> Rene Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
> 
>> Junio C Hamano schrieb:
>>> Although it was my fault applying it already to "master" without 
>>> asking this question first, I started to wonder how many more archive
>>> format people would want, and if it might make more sense to
>>> consolidate git-*-tree into a single frontend with an option to
>>> specify the archiver.
>>>
>>> We would obviously need to keep git-tar-tree as a backward 
>>> compatibility alias for "git archive-tree -f tar", but doing things
>>> that way we do not have to introduce unbounded number of new
>>> git-{zip,rar,...}-tree programs.
>> That thought occurred to me, too.  I guess there are not that many more
>> interesting archive formats, though.  Can we defer adding
>> git-archive-tree until a third archive format command appears?  I won't
>> submit another one, I promise. ;-)
> 
> I was more worried about possibly having to do --remote once in
> each for tar-tree and zip-tree in git-daemon.  The version of
> daemon currently in "pu" can allow git-tar-tree to be accessed
> from the client via git:// URL.

Good point.  And especially for net transfers a compressed format like
ZIP or TGZ (not yet implemented) would be better.

Would it make sense to have just one multiplexer command?  I.e.
something like this:

  git-archive -f <format> [extra]                <tree-ish> [<base>]
  git-archive -f <format> [extra] --upload       <tree-ish> [<base>]
  git-archive -f <format> [extra] --remote=<url> <tree-ish> [<base>]

[extra] stands for format specific options like the compression ratio
for ZIP.  The protocol spoken by upload and --remote would need to be
extended to be able to specify the format and any format specific options.

While we're discussing the command line interface, would it make sense
to support path specs, like e.g. ls-tree does?  Like this:

  git-archive -f <format> [extra] [--prefix=<base>] <tree-ish> [<path>]

Personally, I don't see the need for path specs for archive creation,
but IF we want to introduce them then the best time to do it would be
now, at the same time as introducing git-archive (or git-archive-tree).

René

  reply	other threads:[~2006-08-28 22:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-27 11:19 [PATCH] Add git-zip-tree to .gitignore Rene Scharfe
2006-08-27 22:04 ` Junio C Hamano
2006-08-27 22:34   ` Rene Scharfe
2006-08-27 22:57     ` Junio C Hamano
2006-08-28 22:28       ` Rene Scharfe [this message]
2006-08-28 22:43         ` Junio C Hamano

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=44F36E03.9090802@lsrfire.ath.cx \
    --to=rene.scharfe@lsrfire.ath.cx \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /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).