git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FR: Clone just the desired subdirectory
@ 2010-06-25 14:24 Laszlo Papp
  2010-06-25 14:30 ` Sverre Rabbelier
  2010-06-25 20:27 ` Björn Steinbrink
  0 siblings, 2 replies; 3+ messages in thread
From: Laszlo Papp @ 2010-06-25 14:24 UTC (permalink / raw)
  To: Git List

Hi,

Is there a way to clone
git://git.openembedded.org/openembedded/recipes/qt4, not the whole
repository ?

I have just tried this command, but it doesn't service the capable habit:
git clone --depth 1 git://git.openembedded.org/openembedded/

I have seen on a good feature in case gitorious where you can select a
folder to download in a compressed format (*.tar.gz for instance). Can
it be implemented in case git 'backend' ?

My friend asked it from me, but I couldn't advise anything to him, but
this request does make sense by me. So he would like to download a
part of a git repository and he is not interested in the index and the
history, so it would be nice to have something like git archive
--remote or similar command which can do this operation.

Best Regards,
Laszlo Papp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FR: Clone just the desired subdirectory
  2010-06-25 14:24 FR: Clone just the desired subdirectory Laszlo Papp
@ 2010-06-25 14:30 ` Sverre Rabbelier
  2010-06-25 20:27 ` Björn Steinbrink
  1 sibling, 0 replies; 3+ messages in thread
From: Sverre Rabbelier @ 2010-06-25 14:30 UTC (permalink / raw)
  To: Laszlo Papp; +Cc: Git List

Heya,

On Fri, Jun 25, 2010 at 16:24, Laszlo Papp <djszapi@archlinux.us> wrote:
> My friend asked it from me, but I couldn't advise anything to him, but
> this request does make sense by me. So he would like to download a
> part of a git repository and he is not interested in the index and the
> history, so it would be nice to have something like git archive
> --remote or similar command which can do this operation.

Basically what you want is the ability to say "give me the tree and
corresponding blobs for directory foo in revision bar" (where bar is
usually HEAD). This ties in with the work on spare/narrow
checkouts/clones, which seems to have stagnated.

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FR: Clone just the desired subdirectory
  2010-06-25 14:24 FR: Clone just the desired subdirectory Laszlo Papp
  2010-06-25 14:30 ` Sverre Rabbelier
@ 2010-06-25 20:27 ` Björn Steinbrink
  1 sibling, 0 replies; 3+ messages in thread
From: Björn Steinbrink @ 2010-06-25 20:27 UTC (permalink / raw)
  To: Laszlo Papp; +Cc: Git List

On 2010.06.25 16:24:52 +0200, Laszlo Papp wrote:
> Is there a way to clone
> git://git.openembedded.org/openembedded/recipes/qt4, not the whole
> repository ?

Here you ask for a subdirectory clone.

> My friend asked it from me, but I couldn't advise anything to him, but
> this request does make sense by me. So he would like to download a
> part of a git repository and he is not interested in the index and the
> history, so it would be nice to have something like git archive
> --remote or similar command which can do this operation.

Here you say that your friend doesn't bother about the history, but just
wants a snapshot.

So which functionality are you actually asking for? The latter can
already be handled by git archive:

git archive --remote=<repo> <tree-ish>

For example:

git archive --remote=git://localhost/some/repo.git HEAD:some/directory

git-daemon just doesn't allow it by default, you need to enable the
upload-archive service.

Björn

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-25 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-25 14:24 FR: Clone just the desired subdirectory Laszlo Papp
2010-06-25 14:30 ` Sverre Rabbelier
2010-06-25 20:27 ` Björn Steinbrink

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).