From: Taylor Blau <me@ttaylorr.com>
To: "Andreas Grünbacher" <andreas.gruenbacher@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Apply git bundle to source tree?
Date: Fri, 18 Sep 2020 10:02:36 -0400 [thread overview]
Message-ID: <20200918140236.GA1602321@nand.local> (raw)
In-Reply-To: <CAHpGcMJqmUmCR_u3fxSVppzwBo8_6RJG5-WLrXAWXm+OQ6_3bA@mail.gmail.com>
Hi Andreas,
On Fri, Sep 18, 2020 at 01:13:52PM +0200, Andreas Grünbacher wrote:
> Hi,
>
> I'm wondering if there's a way to apply a particular head in a bundle
> to a source tree, for example:
>
> $ git bundle create v5.9-rc1.bundle v5.8..v5.9-rc1
> $ cd linux-5.8
> $ git bundle APPLY ../5.9-rc1.bundle v5.9-rc1
Sort of. You can specify a refspec when fetching from the bundle to
fetch only the objects you care about, like:
cd linux-5.8
git fetch /path/to/bundle 'refs/tags/v5.9-rc1:refs/tags/v5.9-rc1'
(or if you prefer, "git fetch /path/to/bundle 'tag v5.9-rc1'"). Then
once you have the objects locally, you can merge it into your HEAD. You
can do all of that in one step with:
git pull /path/to/bundle 'refs/tags/v5.9-rc1'
There's no such thing as 'git bundle apply' though, although I suspect
'git pull' is what you wanted anyway.
Thanks,
Taylor
next prev parent reply other threads:[~2020-09-18 14:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 11:13 Apply git bundle to source tree? Andreas Grünbacher
2020-09-18 14:02 ` Taylor Blau [this message]
2020-09-18 14:12 ` Andreas Grünbacher
2020-09-18 14:17 ` Taylor Blau
2020-09-18 14:50 ` Andreas Grünbacher
2020-09-18 15:21 ` Andreas Schwab
2020-09-18 15:32 ` Andreas Grünbacher
2020-09-18 15:52 ` Andreas Schwab
2020-09-18 15:41 ` Junio C Hamano
2020-09-18 20:00 ` Andreas Grünbacher
2020-09-18 20:18 ` Konstantin Ryabitsev
2020-09-18 21:45 ` Andreas Grünbacher
2020-09-19 12:06 ` Thomas Guyot-Sionnest
2020-09-19 19:28 ` brian m. carlson
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=20200918140236.GA1602321@nand.local \
--to=me@ttaylorr.com \
--cc=andreas.gruenbacher@gmail.com \
--cc=git@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.