All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Petr Štetiar" <ynezz@true.cz>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH v2] barebox: patches for barebox 2010.10 to	support vmx25
Date: Sat, 29 Jan 2011 15:31:54 +0100	[thread overview]
Message-ID: <20110129143154.GN2466@ibawizard.net> (raw)
In-Reply-To: <AANLkTi=W1L5-7L_jdNhXNu8JsW09GGJ=bO0KTKrFb9Ek@mail.gmail.com>

Marek Sujak <sujak.marek@gmail.com> [2011-01-29 08:34:45]:

> I have  a question about these commits.  Should i reset git to default state
> (or clone it again) and then commit new files?  Or make commit that will
> firstly remove these files and them upload them in correct order (firstly
> raw support, then architecture depended patch)?

If I understand your question correctly, than you don't need to clone/reset
anything at all. You should just learn git-rebase or maybe just the
git-cherry-pick for the beginning:

$ git checkout -b oe-upstream origin/master
$ git cherry-pick -n <hash of '[PATCH v2] barebox: added recipe for barebox v 2010.10'>
$ vim barebox-recipe # remove the vmx25 bits from the recipe
$ git add barebox-recipe && git commit -a -m 'barebox: added barebox 2010.10'

$ git cherry-pick -n <hash of 'barebox: patches for barebox 2010.10 to support vmx25'>
$ vim barebox-recipe # add vmx25 bits and vmx25 patch
$ git add barebox-recipe barebox-vmx25-patch
$ git commit -a -m 'barebox: add support for vmx25 machine'

$ #test-build the changes now
$ #git format v3 of your patchset
$ #review the patches
$ #git send the patches

BTW, it's really a lot easier and faster with git-rebase, it's worth learning it.

-- ynezz



  reply	other threads:[~2011-01-29 14:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 13:15 [PATCH v2] barebox: patches for barebox 2010.10 to support vmx25 sujak.marek
2011-01-28 18:44 ` Eric Bénard
2011-01-29  7:34   ` Marek Sujak
2011-01-29 14:31     ` Petr Štetiar [this message]
2011-01-29 14:57       ` Eric Bénard
2011-01-31  9:03   ` Marek Sujak

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=20110129143154.GN2466@ibawizard.net \
    --to=ynezz@true.cz \
    --cc=openembedded-devel@lists.openembedded.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.