[vlc-devel] RE : RE : [PATCH] - media_list (libvlc api)
brezhoneg1
brezhoneg1 at yahoo.fr
Sat Nov 29 21:58:44 CET 2008
Thanks a lot for your advice. Very valuable email, indeed !
Erwan10
-----Message d'origine-----
De : vlc-devel-bounces at videolan.org
[mailto:vlc-devel-bounces at videolan.org] De la part de David Flynn
Envoyé : samedi 29 novembre 2008 13:47
À : vlc-devel at videolan.org
Objet : Re: [vlc-devel] RE : [PATCH] - media_list (libvlc api)
On 2008-11-28, brezhoneg1 <brezhoneg1 at yahoo.fr> wrote:
> I know using git would be better. But, I still have a bandwidth
> problem (and git clone is far too big). Hopefully, I should solve this
> problem soon.
In an ideal world, what you want is:
$ git clone --depth 1 git://git.videolan.org/vlc.git
Under nornal circumstances this will perform a shallow clone,
however, that will pull multiple branches and tags and end up being
about 100MiB to download (urgh).
So what can be done instead is a bit more manual:
Create a bare repository:
$ mkdir vlc && cd vlc
$ git init
Set up a remote called 'origin' that only tracks the master branch (or
whatever you need) of the remote repository.
$ git remote add -t master origin git://git.videolan.org/vlc.git
Do a shallow fetch of that remote:
$ git fetch --depth 1 origin
...
Receiving objects: 100% (3776/3776), 12.44 MiB | 840 KiB/s, done
...
Much better :)
Checkout a local branch:
$ git checkout -b master origin/master
Carry on as normal. In order to update your remotes, use git remote
update.
There are some restrictions on doing a shallow clone, but for producing
patches and rebasing, it is fine. See man git-clone for more details.
...david
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list