From: James Hogan <james.hogan@imgtec.com>
To: "Maciej W. Rozycki" <macro@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>, <linux-mips@linux-mips.org>
Subject: Re: [PATCH 4/4] MIPS16e2: Provide feature overrides for non-MIPS16 systems
Date: Tue, 4 Jul 2017 17:51:31 +0100 [thread overview]
Message-ID: <20170704165131.GB6973@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <alpine.DEB.2.00.1707041636350.3339@tp.orcam.me.uk>
[-- Attachment #1: Type: text/plain, Size: 2777 bytes --]
On Tue, Jul 04, 2017 at 04:50:00PM +0100, Maciej W. Rozycki wrote:
> On Mon, 3 Jul 2017, James Hogan wrote:
>
> > > Hardcode the absence of the MIPS16e2 ASE for all the systems that do so
> > > for the MIPS16 ASE already, providing for code to be optimized away.
> > >
> > > Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
> >
> > I'm inclined to agree with Florian, that git formatted patches are
> > slightly easier to review, perhaps they just subjectively look more
> > familiar. Out of interest, do you not use git for retrieving kernel
> > source already?
>
> I do use GIT for managing the sources themselves of course, however I
> keep using `quilt' for patches for two main reasons:
>
> 1. It works efficiently for the work flow I've got used to,
fair enough.
> e.g. how do I hand-edit 16th previous diff with GIT;
git rebase -i HEAD~17
You can change a commit from "pick" to "edit" to get the rebase to stop
and allow you to edit the tree at that point in the series, before
continuing with "git rebase --continue" (or --abort to cancel the
rebase).
> how do I swap patches;
git rebase -i $base
and reorder the lines
> how do I move individual hunks between patches? -- these actions are
> trivial with `quilt'.
git rebase -i is again the answer, though probably not as trivial as
quilt (though perhaps more robust than hand editing patches?).
I've found a few ways that generally revolve around using
git checkout -p,
Example 1:
To move a hunk from a later commit into an earlier commit, add
x git checkout -p $later_commit && git commit --amend $earlier_commit
before the later commit in the interactive rebase. Pick the hunks you
want to grab (you can edit them there too), and when rebase is done you
have a fixup commit before the later commit. Finally do another rebase
with --autosquash:
git rebase -i $base --autosquash
to automatically squash the fixup commit into the earlier commit
Example 2:
To move a hunk from an earlier commit into a later commit, you could
"git checkout -p" after both commits, e.g.
pick $earlier_commit
x git checkout -p HEAD~ && git commit --amend
pick $intermediate1
pick $later_commit
x git checkout -p $later_commit && git commit --amend
Interactively undo the change (first checkout -p), and interactively
reapply the change (second checkout -p).
Being git there's 100 variants of that, e.g. changing pick to edit and
doing the commands manually, or doing the same thing as Example 1 for
moving hunks later if you aren't expecting conflicts (but you'll have to
move the fixup yourself as --autosquash doesn't move fixups later).
Its obviously advisable to inspect and diff after rebase -i to double
check.
Cheers
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: James Hogan <james.hogan@imgtec.com>
To: "Maciej W. Rozycki" <macro@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: [PATCH 4/4] MIPS16e2: Provide feature overrides for non-MIPS16 systems
Date: Tue, 4 Jul 2017 17:51:31 +0100 [thread overview]
Message-ID: <20170704165131.GB6973@jhogan-linux.le.imgtec.org> (raw)
Message-ID: <20170704165131.sbLsNcKwGW2K-g35c6fprCdu-Wv-WVNmjvH1NxqHoZY@z> (raw)
In-Reply-To: <alpine.DEB.2.00.1707041636350.3339@tp.orcam.me.uk>
[-- Attachment #1: Type: text/plain, Size: 2777 bytes --]
On Tue, Jul 04, 2017 at 04:50:00PM +0100, Maciej W. Rozycki wrote:
> On Mon, 3 Jul 2017, James Hogan wrote:
>
> > > Hardcode the absence of the MIPS16e2 ASE for all the systems that do so
> > > for the MIPS16 ASE already, providing for code to be optimized away.
> > >
> > > Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
> >
> > I'm inclined to agree with Florian, that git formatted patches are
> > slightly easier to review, perhaps they just subjectively look more
> > familiar. Out of interest, do you not use git for retrieving kernel
> > source already?
>
> I do use GIT for managing the sources themselves of course, however I
> keep using `quilt' for patches for two main reasons:
>
> 1. It works efficiently for the work flow I've got used to,
fair enough.
> e.g. how do I hand-edit 16th previous diff with GIT;
git rebase -i HEAD~17
You can change a commit from "pick" to "edit" to get the rebase to stop
and allow you to edit the tree at that point in the series, before
continuing with "git rebase --continue" (or --abort to cancel the
rebase).
> how do I swap patches;
git rebase -i $base
and reorder the lines
> how do I move individual hunks between patches? -- these actions are
> trivial with `quilt'.
git rebase -i is again the answer, though probably not as trivial as
quilt (though perhaps more robust than hand editing patches?).
I've found a few ways that generally revolve around using
git checkout -p,
Example 1:
To move a hunk from a later commit into an earlier commit, add
x git checkout -p $later_commit && git commit --amend $earlier_commit
before the later commit in the interactive rebase. Pick the hunks you
want to grab (you can edit them there too), and when rebase is done you
have a fixup commit before the later commit. Finally do another rebase
with --autosquash:
git rebase -i $base --autosquash
to automatically squash the fixup commit into the earlier commit
Example 2:
To move a hunk from an earlier commit into a later commit, you could
"git checkout -p" after both commits, e.g.
pick $earlier_commit
x git checkout -p HEAD~ && git commit --amend
pick $intermediate1
pick $later_commit
x git checkout -p $later_commit && git commit --amend
Interactively undo the change (first checkout -p), and interactively
reapply the change (second checkout -p).
Being git there's 100 variants of that, e.g. changing pick to edit and
doing the commands manually, or doing the same thing as Example 1 for
moving hunks later if you aren't expecting conflicts (but you'll have to
move the fixup yourself as --autosquash doesn't move fixups later).
Its obviously advisable to inspect and diff after rebase -i to double
check.
Cheers
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-07-04 16:51 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-23 12:36 [PATCH 0/4] MIPS16e2 ASE support Maciej W. Rozycki
2017-05-23 12:36 ` Maciej W. Rozycki
2017-05-23 12:37 ` [PATCH 1/4] MIPS16e2: Identify ASE presence Maciej W. Rozycki
2017-05-23 12:37 ` Maciej W. Rozycki
2017-07-03 18:32 ` James Hogan
2017-07-03 18:32 ` James Hogan
2017-05-23 12:38 ` [PATCH 2/4] MIPS16e2: Subdecode extended LWSP/SWSP instructions Maciej W. Rozycki
2017-05-23 12:38 ` Maciej W. Rozycki
2017-07-03 20:20 ` James Hogan
2017-07-03 20:20 ` James Hogan
2017-05-23 12:39 ` [PATCH 3/4] MIPS16e2: Report ASE presence in /proc/cpuinfo Maciej W. Rozycki
2017-05-23 12:39 ` Maciej W. Rozycki
2017-07-03 20:23 ` James Hogan
2017-07-03 20:23 ` James Hogan
2017-07-04 15:35 ` Maciej W. Rozycki
2017-07-04 15:35 ` Maciej W. Rozycki
2017-07-04 15:39 ` James Hogan
2017-07-04 15:39 ` James Hogan
2017-05-23 12:40 ` [PATCH 4/4] MIPS16e2: Provide feature overrides for non-MIPS16 systems Maciej W. Rozycki
2017-05-23 12:40 ` Maciej W. Rozycki
2017-05-23 19:06 ` Florian Fainelli
2017-05-23 22:21 ` Maciej W. Rozycki
2017-05-23 22:21 ` Maciej W. Rozycki
2017-07-03 20:32 ` James Hogan
2017-07-03 20:32 ` James Hogan
2017-07-04 15:50 ` Maciej W. Rozycki
2017-07-04 15:50 ` Maciej W. Rozycki
2017-07-04 16:51 ` James Hogan [this message]
2017-07-04 16:51 ` James Hogan
2017-07-03 17:22 ` [PING][PATCH 0/4] MIPS16e2 ASE support Maciej W. Rozycki
2017-07-03 17:22 ` Maciej W. Rozycki
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=20170704165131.GB6973@jhogan-linux.le.imgtec.org \
--to=james.hogan@imgtec.com \
--cc=linux-mips@linux-mips.org \
--cc=macro@imgtec.com \
--cc=ralf@linux-mips.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