git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: Linus Torvalds <torvalds@osdl.org>, Petr Baudis <pasky@ucw.cz>,
	git@vger.kernel.org
Subject: Re: [PATCH 0/2] Support for packs in HTTP
Date: Sun, 10 Jul 2005 16:10:17 -0700	[thread overview]
Message-ID: <7vzmsus1eu.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.21.0507101539220.30848-100000@iabervon.org> (Daniel Barkalow's message of "Sun, 10 Jul 2005 15:53:18 -0400 (EDT)")

Daniel Barkalow <barkalow@iabervon.org> writes:

> This series has one patch which is ready to go in and one that's not
> (although it's a reasonable phony for the current state of the git world).

I like the general direction in which this patch is leading us.

But before going further, I'd like to see a consensus on the
pack naming convention.  The "sha1 of packed object names" was
originally introduced to easily avoid the pack name collisions,
but not enforced, so a user could do the following and still
expect things to work:

    $ n=`git-pack-objects pk <list-of-objects`
    $ mv pk-$n.pack .git/objects/pack/pk.pack
    $ mv pk-$n.idx .git/objects/pack/pk.idx

The first part of this patch makes things stricter, and your
packfile under .git/objects/pack _must_ be named pack-X{40}.pack
(I am not saying this is a bad thing).  So I would suggest
either:

  - droping the packname parameter from git-pack-objects.  Make
    the packs always named pack-X{40}.pack (or just X{40}.pack);
    also have verify-pack to verify the name of the packfile,
    and make sure X{40} part of the name matches what it claims
    to contain;

  - or drop sha1_pack_name() and let the user name the pack any
    way he wants.

I am moderately in favor of the former.

  parent reply	other threads:[~2005-07-10 23:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-10 19:53 [PATCH 0/2] Support for packs in HTTP Daniel Barkalow
2005-07-10 19:55 ` [PATCH 1/2] Management of packs not yet installed Daniel Barkalow
2005-07-10 19:56 ` [PATCH 2/2] Demo support for packs via HTTP Daniel Barkalow
2005-07-11 21:49   ` Darrin Thompson
2005-07-12  1:54     ` Daniel Barkalow
2005-07-12 13:35       ` Darrin Thompson
2005-07-10 23:10 ` Junio C Hamano [this message]
2005-07-10 23:45   ` [PATCH 0/2] Support for packs in HTTP Linus Torvalds
2005-07-11  0:20     ` Daniel Barkalow
2005-07-11  0:34       ` Linus Torvalds
2005-07-11  3:22         ` Daniel Barkalow
2005-07-11  3:37           ` Linus Torvalds
2005-07-11  4:07             ` Daniel Barkalow
2005-07-11 17:44               ` Linus Torvalds
2005-07-11 20:03                 ` Daniel Barkalow

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=7vzmsus1eu.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=barkalow@iabervon.org \
    --cc=git@vger.kernel.org \
    --cc=pasky@ucw.cz \
    --cc=torvalds@osdl.org \
    /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).