From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question about patches
Date: Tue, 20 Jul 2010 14:59:38 +0200 [thread overview]
Message-ID: <20100720125938.E1FC3153780@gemini.denx.de> (raw)
In-Reply-To: <AANLkTilaJ7MVv7VxxreBkCCSzYSZVSqULk_3I5AHlS4s@mail.gmail.com>
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
I can reorder, drop, combine (squash), edit patches...
> Sometimes when I'm in the middle of a very long development session I tend
> to end up with one 'big patch' which has multiple logical change units. In
> this case, you can pop the 'big patch', insert a new smaller patch
> implementing some of the 'big patch' then when you push the 'big patch',
> all the duplicate changes are stripped. So you can basically whittle down
> a big, complex commit into multiple smaller commits very easily.
We can use "git add -i" to do this as well. You can even split hunks
to add them to different commits.
> I'm sure you'll argue that this is poor development management, but I
> find myself more efficient if a 'get in the zone' and then go back and
> break things up. It also serves as a really good self imposed code review
No, I don't argue. I'm trying to undestand. I am well aware that there
are many tools for the same tasks, and the most efficient ones are
these you know well, so "vi" is probably much more eficient to me than
your favorite editor is to you. But I always like at least to know
what the tools can do that I don't use or don't know that well -
sometimes - sometimes i's time to make room in the toolbox for a new
tool or another :-)
Thanks!
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Engineering without management is art." - Jeff Johnson
next prev parent reply other threads:[~2010-07-20 12:59 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 [this message]
2010-07-20 15:29 ` Xiangfu Liu
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=20100720125938.E1FC3153780@gemini.denx.de \
--to=wd@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox