git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Burke Cates <burke.cates@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Three-tiered VM development setup with support for branch  switching
Date: Thu, 20 May 2010 08:37:45 +0000	[thread overview]
Message-ID: <AANLkTilIhuE06gVSO8cM_iLtixxBUX7DxrSlUbaCvmUs@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinQJLsS6N_d2hsfwbibEuKiUHi9FAnrb5K4Frih@mail.gmail.com>

On Thu, May 20, 2010 at 00:59, Burke Cates <burke.cates@gmail.com> wrote:
> The only solution I can think of involves ripping the branch out of
> the refspec that is passed to the hook and using that to call checkout
> and pull (or possibly a checkout -b --track newbranch if I dont have
> the branch locally on prime). I feel like this is a pretty nasty hack,
> but I might be missing something completely that would make this sort
> of setup much easier to pull off.
> What I'm trying to pull off here is this: devs can code at their
> workstations with whatever tools they want, and push changes to the
> VM's with git. Hooks will be used to initiate makes for testing and
> for pushing changes to other nodes in the test-cluster (who will have
> the same make hook). The only obstacle at this point is the branch
> switching.

If I'm not mistaken the plumbing commands like git-commit-tree allow
you to make commits without switching branches. I.e. they just record
raw data in the repository and don't care about your checkout.

      reply	other threads:[~2010-05-20  8:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20  0:59 Three-tiered VM development setup with support for branch switching Burke Cates
2010-05-20  8:37 ` Ævar Arnfjörð Bjarmason [this message]

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=AANLkTilIhuE06gVSO8cM_iLtixxBUX7DxrSlUbaCvmUs@mail.gmail.com \
    --to=avarab@gmail.com \
    --cc=burke.cates@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 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).