From: Alison Schofield <amsfield22@gmail.com>
To: Elizabeth Ferdman <gnudevliz@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: Rebase/line wrap question
Date: Wed, 28 Sep 2016 13:25:01 -0700 [thread overview]
Message-ID: <20160928202500.GA11599@d830.WORKGROUP> (raw)
In-Reply-To: <20160928192508.GB2193@localhost>
On Wed, Sep 28, 2016 at 12:25:08PM -0700, Elizabeth Ferdman wrote:
> Hey Alison,
>
> I received some feedback from Greg that I want
> to fix and I have a bunch of questions. The plus side is that maybe
> some of the answers could go into the tutorial.
>
> First he said "please wrap your changelog comments at 72 columns."
>
> Is this something I add to my .vimrc? I've been using "git commit -m".
> Is that causing the issue? I thought git commit messages were supposed
> to be less than 50 chars anyway. I'm confused.
"commit message" is that one line message in your Subject line and it
needs to fit in 80chars. The tutorial tells you about using git with
git log --pretty=oneline --abbrev-commit' to see style used for that
particular file/subsystem.
"changelog" is the next section in the body of the patch. I saw Greg's
message yesterday, and I went off and looked at that a bit. I think
I always dodge that just by luck and the way I visually like to line
things up. I googled a bit and see lots of little widgets for
linewrapping text to a certain column size. Don't know how to
integrate any of those with git commit editing. Maybe someone else
here does.
w.r.t. using "git commit -m" - just curious why you are not doing
"git commint -s -v" per the tutorial?
>
> The other issue was that my commit didn't apply to his tree. He says
> please rebase and resend. I think I need to do:
>
assuming you are in your staging tree
> $ git fetch origin
> $ git rebase origin/staging-testing
When this happens git will try to place any commits it finds
in your tree on top of all the stuff it grabbed from greg.
If it doesn't apply nicely, it will give you message to repair.
> Then reformat the patch?
Caveat - if the rebase failed and you had to tweak your patch,
then you may end up needing to git commit --amend -v to update
your changelog.
> $ git format-patch -o ~/mypatches/ HEAD^
> $ mutt -H <file>
>
> So I don't need to uncommit/recommit?
No, that git rebase does that for you.
Another aside: Whenever Greg sends out a message that he's caught
up on patches, that's certainly a time to rebase. Also, it could
be part of your daily routine, to make sure you on "top" each
day before you start working on your patches.
Hope that gets you further along,
alisons
>
> Thanks,
> Liz
>
next prev parent reply other threads:[~2016-09-28 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 19:25 Rebase/line wrap question Elizabeth Ferdman
2016-09-28 20:25 ` Alison Schofield [this message]
2016-09-28 21:49 ` Elizabeth Ferdman
2016-09-28 22:51 ` Alison Schofield
2016-09-29 6:19 ` [Outreachy kernel] " Greg KH
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=20160928202500.GA11599@d830.WORKGROUP \
--to=amsfield22@gmail.com \
--cc=gnudevliz@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/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.