From: Shawn Pearce <spearce@spearce.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: git-unpack-objects < pack file in repository doesn't work!
Date: Mon, 6 Mar 2006 23:02:55 -0500 [thread overview]
Message-ID: <20060307040255.GA29544@spearce.org> (raw)
In-Reply-To: <7vlkvn54sv.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> Shawn Pearce <spearce@spearce.org> writes:
>
> > I totally didn't expect that behavior. But I should have. It makes
> > perfect sense.
>
> Good to hear that you two did not lose any data. I think the
> command should be documented as "not for interactive use without
> understanding what it does" ;-).
>
> What was the reason you wanted to use it? I think we should
> have a wrapper command to do what you wanted to achieve, so that
> people do not have to run unpack-objects by hand.
Don't bother.
I wanted to explode a pack because I'm starting work on an Eclipse
plugin for GIT. I thought I'd try going down the road of letting
the plugin read the repository directly, and write loose objects
directly, but leave pack construction to the native C code. So I
tried to clone my local GIT repository to a new directory (thus
had no loose objects at all) and unpack it to get loose objects.
That didn't go so well. :-)
So now I'm currently just playing around with a tiny repository I
created for testing (something like 50 objects total). Since I have
never packed it everything is loose, and that's working out OK...
I've already got loose object reading working, but thanks to
the trivially simple repository format in GIT (thanks Linus,
et.al.!) that amounted to a trivial Java implementation so its
nothing to really brag about yet. :-)
--
Shawn.
next prev parent reply other threads:[~2006-03-07 4:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-07 1:13 git-unpack-objects < pack file in repository doesn't work! Blaisorblade
2006-03-07 2:29 ` Shawn Pearce
2006-03-07 3:09 ` Junio C Hamano
2006-03-07 4:02 ` Shawn Pearce [this message]
2006-03-09 10:14 ` 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=20060307040255.GA29544@spearce.org \
--to=spearce@spearce.org \
--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).