Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import'
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 27, 2007, 12:16 UTC
- Message-ID
- <Pine.LNX.4.64.0711271214230.27959@racer.site>
- In-Reply-To
- <fcaeb9bf0711240608w2e5e0812me0e56c1f1a2f8c85@mail.gmail.com>
Hi,
On Sat, 24 Nov 2007, Nguyen Thai Ngoc Duy wrote:
Show 15 quoted lines
> On Nov 23, 2007 9:31 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > > > On Fri, 23 Nov 2007, Nguyen Thai Ngoc Duy wrote: > > > > > Bundle is very handy for transferring a bunch of commits, but it > > > does not (cannot?) hold tags and branches. > > > > But they can! Nothing prevents you from calling > > > > git bundle create a1.bundle refs/tags/v1.0.0 refs/heads/next > > > > (At least this is the idea, haven't tested yet). > > It can store commits and heavy tags, but it won't restore tags to > refs/tags or advance branches.
The idea is that you fetch them from the bundle. So something like this should do what you want:
git fetch a1.bundle v1.0.0:refs/tags/v1.0.0
Note that the automatic tag handling of git fetch kicks in with bundles just like with other fetch URLs (Unassuming Repository Locators).
Ciao, Dscho