TODO/comment questions
I'm seeing a "Block comments use * on subsequent lines" checkpatch error in many spots on one driver so I thought I would change a few of those in multiple files and put them all in one patch. I think that's better than submitting multiple patches just for comment revision, but you tell me.
My second question-- one specific comment that is missing an asterisk includes a TODO line. Is it good practice to have a TODO in a comment? I'm not seeing anything about it in the style guide. If it's fine I'll just add an asterisk there and leave it the way it is.
Thanks,
Liz
Quoted 4 lines · On Tue, Sep 27, 2016 at 12:49:37PM -0700, [email protected] wrote:
I'm seeing a "Block comments use * on subsequent lines" checkpatch error in many spots on one driver so I thought I would change a few of those in multiple files and put them all in one patch. I think that's better than submitting multiple patches just for comment revision, but you tell me.
Sounds good.
Single driver with multiple files needing same type of change.
So the commit msg applies to everything you did..ie use kernel preferred block commenting style.
Quoted 5 lines
My second question-- one specific comment that is missing an asterisk includes a TODO line. Is it good practice to have a TODO in a comment? I'm not seeing anything about it in the style guide. If it's fine I'll just add an asterisk there and leave it the way it is.
When I "git grep TODO", I see the TODO inside comments a lot. Don't know if it's good practice, but certainly common. What would the alternative be?
alisons
Quoted 10 lines
Thanks,
LizSignature · 5 lines
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/44f080fb-8ee2-4de0-8480-7b21534757ab%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Quoted 8 lines
Quoted 4 lines
My second question-- one specific comment that is missing an asterisk includes a TODO line. Is it good practice to have a TODO in a comment? I'm not seeing anything about it in the style guide. If it's fine I'll just add an asterisk there and leave it the way it is.
When I "git grep TODO", I see the TODO inside comments a lot. Don't know if it's good practice, but certainly common. What would the alternative be?
If the developer had something more elaborate in mind, it would indeed have been nice to have it expressed in a more detailed way. But at least it conveys the information that there is something to do here...
julia
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 20160927220413.GA23877@localhost
A message that is not in the archive (sent off-list or not yet received): [email protected]
line wrap and rebase question
Hey Alison,
Good morning! I received some not so good 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.
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:
$ git fetch origin $ git rebase origin/staging-testing Then reformat the patch? $ git format-patch -o ~/mypatches/ HEAD^ $ mutt -H <file>
So I don't need to uncommit/recommit?
Thanks,
Liz
Re: line wrap and rebase question
reply is in your new thread - Rebase/line wrap question
Re: [Outreachy kernel] line wrap and rebase question
In reply to Elizabeth FerdmanQuoted 11 lines · Elizabeth Ferdman
Hey Alison,
Good morning! I received some not so good 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.
The 50 chars is for the subject line. The 72 chars is for the log message. Once the patch has been committed, the log message will be indented a bit. So you can't go all the way to 80 characters. For code, going a bit past 72 can be OK.
julia
Quoted 22 lines
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:
$ git fetch origin $ git rebase origin/staging-testing Then reformat the patch? $ git format-patch -o ~/mypatches/ HEAD^ $ mutt -H <file>So I don't need to uncommit/recommit?
Thanks,
Liz--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160928181956.GA2193%40localhost.
For more options, visit https://groups.google.com/d/optout.