From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: git@vger.kernel.org
Subject: Re: Create object subdirectories on demand
Date: Fri, 07 Oct 2005 02:38:14 -0700 [thread overview]
Message-ID: <7vfyrd7jll.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0510061612080.31407@g5.osdl.org> (Linus Torvalds's message of "Thu, 6 Oct 2005 16:23:48 -0700 (PDT)")
Linus Torvalds <torvalds@osdl.org> writes:
> This has _not_ gotten a lot of testing, but I verified that basic things
> seem to work, and that packing an archive properly removes the unnecessary
> subdirectories.
>
> I'd suggest it sit in "pu" for a while.
I typically use the tip of "pu" myself, which resulted in an
interesting case (nothing grave). After running 'git prune', I
switched to another topic branch that did not include this
patch, built it, and tried it out -- and got complaint because
the earlier 'git prune' happened to remove ".git/objects/00".
Now I was not in a valid git repository anymore ;-).
This needs to wait until everybody's git get this update,
especially, I cannot use this version in my $HOME/bin/ on
kernel.org right now.
But then once everybody else updates, the repository their git
creates cannot be read by my git -- an interesting chicken and
egg problem.
Maybe successful rmdir() immediately followed by mkdir(), if we
are willing to waste 4KB or so per empty directory, trading
space for safety and ease of transition? That is, phase I tools
do not complain if objects/00 is missing, lazily creates
object/??/ is missing, and makes sure empty directories are
pruned but still recreates them for safety. Then phase II tools
then stops the recreating part.
> However, somebody should really check my code carefully before merging
> this. In particular, I didn't test "git-ssh-pull" at all, so I'm not sure
> I actually fixed the "write temp-file" thing properly.
Well, the thing is, I do not use commit walkers over ssh myself
and honestly consider them having outlived their usefulness.
But you are right -- I should look at this one again before
placing in the master.
next prev parent reply other threads:[~2005-10-07 9:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 23:23 Create object subdirectories on demand Linus Torvalds
2005-10-07 9:38 ` Junio C Hamano [this message]
2005-10-07 14:56 ` Linus Torvalds
2005-10-07 16:30 ` [PATCH] Create object subdirectories on demand (phase II) Junio C Hamano
2005-10-08 1:45 ` Create object subdirectories on demand Daniel Barkalow
2005-10-09 10:42 ` Use the same move_temp_to_file in git-http-fetch 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=7vfyrd7jll.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--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).