All of lore.kernel.org
 help / color / mirror / Atom feed
From: Elizabeth Ferdman <gnudevliz@gmail.com>
To: Alison Schofield <amsfield22@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: Rebase/line wrap question
Date: Wed, 28 Sep 2016 14:49:15 -0700	[thread overview]
Message-ID: <20160928214914.GA3263@localhost> (raw)
In-Reply-To: <20160928202500.GA11599@d830.WORKGROUP>

On Wed, Sep 28, 2016 at 01:25:01PM -0700, Alison Schofield wrote:
> 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?

I meant to say that I have been doing "git commit -s -v -m <msg>"
But I just realized that was pointless and just causing me more work.
> > 
> > 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.
> 
got it, thanks!
> > $ 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.
> 
yes, I had a feeling I should've been rebasing more often but the
tutorial didn't explicitly say that. When we say "rebase" should you
always assume that we're doing both of these commands?
$ git fetch origin 
$ git rebase origin/staging-testing

And would it also be a good idea to actually do those 2 before sending the
patch...?

> Hope that gets you further along,
> alisons
>
Thanks so much for all your help.
Liz
> > 
> > Thanks,
> > Liz
> > 


  reply	other threads:[~2016-09-28 21:49 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
2016-09-28 21:49   ` Elizabeth Ferdman [this message]
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=20160928214914.GA3263@localhost \
    --to=gnudevliz@gmail.com \
    --cc=amsfield22@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.