All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xiangfu Liu <xiangfu@openmobilefree.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question about patches
Date: Tue, 20 Jul 2010 23:29:23 +0800	[thread overview]
Message-ID: <4C45C0D3.30205@openmobilefree.net> (raw)
In-Reply-To: <20100720125938.E1FC3153780@gemini.denx.de>

Hi

(share my info :) I am always use stg like this:
for example there are three commit:
	commit1, commit2, commit3,
then I edit file:
	a.c, b.c, c.c

and I want
	a.c goto commit1.
	b.c goto commit2.
	c.c goto commit3.
  
then
	stg refresh a.c -p commit1
	stg refresh b.c -p commit2
	stg refresh c.c -p commit3

I know this is not good. because this may lose change history.
but I use this for create patches for OpenWrt system.


On 07/20/2010 08:59 PM, Wolfgang Denk wrote:
> Dear Graeme Russ,
>
> In message<AANLkTilaJ7MVv7VxxreBkCCSzYSZVSqULk_3I5AHlS4s@mail.gmail.com>  you wrote:
>>
>> Now you will have a bunch of commits, but maybe they are in the wrong order
> ...
>> you can then use stg pop/push/merge to re-arrange and merge commits
>> together to get them in a more logical arrangement before submitting
>
> With "git rebase -i" I get an editor started like this:
>
> pick 3e9b349 NAND: show manufacturer and device ID for unknown chips
> pick 1445f6f NAND: add Toshiba TC58NVG0 identifier
> pick bc1a884 mtd: nand_plat: add simple GPIO framework DEV_READY option
> pick 67ceefa Blackfin: convert plat-nand code to GPIO framework
> pick c9f7351 NAND: environment offset in OOB (CONFIG_ENV_OFFSET_OOB)
> pick 53504a2 NAND: formatting cleanups from env.oob support
> ...
> # Commands:
> #  p, pick = use commit
> #  r, reword = use commit, but edit the commit message
> #  e, edit = use commit, but stop for amending
> #  s, squash = use commit, but meld into previous commit
> #  f, fixup = like "squash", but discard this commit's log message

-- 
Best Regards
Xiangfu Liu
http://www.openmobilefree.net

  reply	other threads:[~2010-07-20 15:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-20  6:55 [U-Boot] Question about patches Fabio Giovagnini
2010-07-20  7:00 ` Vipin KUMAR
2010-07-20  7:39   ` Fabio Giovagnini
2010-07-20  7:52     ` Xiangfu Liu
2010-07-20  8:09       ` Fabio Giovagnini
2010-07-20  9:06     ` Vipin KUMAR
2010-07-20  9:21       ` Graeme Russ
2010-07-20  9:52         ` Wolfgang Denk
2010-07-20 10:00           ` Reinhard Meyer
2010-07-20 11:35           ` Graeme Russ
2010-07-20 12:59             ` Wolfgang Denk
2010-07-20 15:29               ` Xiangfu Liu [this message]
2010-07-20 23:22               ` Graeme Russ
2010-07-20  7:50 ` Stefano Babic
2010-07-20  9:46 ` Wolfgang Denk

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=4C45C0D3.30205@openmobilefree.net \
    --to=xiangfu@openmobilefree.net \
    --cc=u-boot@lists.denx.de \
    /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.