Skip to contentSkip to conversation

git-format-patch question

DISCUSSION Seth Falcon 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

A few questions about git-format-patch:

1. When is one supposed to use --signoff? I gather the answer is project specific, but a statement of what's expected for git itself would probably help clarify things for me.

2. How should I add extra notes to an email generated using git-format-patch? Is this in the docs somewhere that I missed? Is there a recommended way to do this?

3. Is signoff broken? I get:

    $ git-format-patch --stdout --signoff master
    fatal: unrecognized argument: --signoff  

When I pass -s instead of --signoff, I get output, but no patch and no signoff looking thing. Without --signoff and without -s, I get reasonable looking output.

Thanks,

+ seth

#1 lore raw
Quoted 3 lines · Seth Falcon

1. When is one supposed to use --signoff? I gather the answer is project specific, but a statement of what's expected for git itself would probably help clarify things for me.

You shouldn't ;-). Rather, you should sign-off when you make a commit, or if you are forwarding somebody else's patch, before you send the e-mail off.

Quoted 3 lines

2. How should I add extra notes to an email generated using git-format-patch? Is this in the docs somewhere that I missed? Is there a recommended way to do this?

Read the format-patch output in your e-mail buffer and edit just like you edit any text you write in your e-mail.

#2 lore raw
Quoted 10 lines · Junio C Hamano
Quoted 3 lines · Seth Falcon

1. When is one supposed to use --signoff? I gather the answer is project specific, but a statement of what's expected for git itself would probably help clarify things for me.

You shouldn't ;-). Rather, you should sign-off when you make a commit, or if you are forwarding somebody else's patch, before you send the e-mail off.

Quoted 6 lines
Quoted 3 lines

2. How should I add extra notes to an email generated using git-format-patch? Is this in the docs somewhere that I missed? Is there a recommended way to do this?

Read the format-patch output in your e-mail buffer and edit just like you edit any text you write in your e-mail.

Thanks for the quick answers. I guess I was imagining things to be more complicated than they are :-)