All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: yocto@yoctoproject.org
Subject: Re: How to leave original git remote in unpacked repository?
Date: Thu, 12 Jun 2014 12:09:44 +0100	[thread overview]
Message-ID: <53998A78.9000106@dynamicdevices.co.uk> (raw)
In-Reply-To: <10094086.6Vrxdyfy9P@peggleto-mobl5.ger.corp.intel.com>


On 12/06/2014 11:58, Paul Eggleton wrote:
> Hi Alex,
>
> On Friday 30 May 2014 12:39:13 Alex J Lennon wrote:
>> When I drop into a devshell for an unpacked SRV_REV from a particular
>> git SRC_URI I have the git remote origin set to a local archive in the
>> ~/downloads tree.
>>
>> Is there a build variable, say, I can set to leave the original git
>> remote set as well so that I can more easily push back changes I make?
>>
>> (Or is that a bad idea for some reason?)
> There isn't a way to do this, and to be honest with the discussions we've had
> recently about developer workflow, I'm not sure we want to encourage doing
> development within the workdir for a recipe because it's managed by the build
> system, and if you're not careful (e.g. with -c clean, rm_work or just
> changing SRC_URI) the sources can vanish taking your changes with it. Our
> alternative at the moment is to use externalsrc [1]. This is a little more
> work though and at the OEDAM meeting [2] there was some discussion about how
> we could make this easier in future.
>

OK thanks Paul. I understand what you mean, having wiped various changes
out in the past with inadvertent -c clean 'ing

That said I do find it quite productive to work in-tree with a
development git fork, ${AUTOREV} in the recipe and frequent work in
progress pushes to the remote repo just in case.

I'll take a look at what's involved in externalsrc as you recommend.

Thanks again,

Alex
 


      reply	other threads:[~2014-06-12 11:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30 11:39 How to leave original git remote in unpacked repository? Alex J Lennon
2014-06-12 10:58 ` Paul Eggleton
2014-06-12 11:09   ` Alex J Lennon [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=53998A78.9000106@dynamicdevices.co.uk \
    --to=ajlennon@dynamicdevices.co.uk \
    --cc=paul.eggleton@linux.intel.com \
    --cc=yocto@yoctoproject.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.