threads / patch / 43210

patchDocumentation tutorial.txt: Teach the reader about git commit -a -s

Subject: [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s

## tl;dr

3 messages between Nov 20, 2006 and Nov 20, 2006. Diffs are folded; open one to read it.

replies: 2people: 3as markdown or json

Paolo Ciarrocchi· Nov 20, 2006, 22:30 UTC · lore

I think it's important to mention, in the collaboration section, that is possible to use the -s option to add the Signed-off-by line

Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
---
 Documentation/tutorial.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Documentation/tutorial.txt +1 −1
diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt
index 554ee0a..402afdf 100644
--- a/Documentation/tutorial.txt
+++ b/Documentation/tutorial.txt
@@ -200,7 +200,7 @@ Bob then makes some changes and commits

 ------------------------------------------------
 (edit files)
-$ git commit -a
+$ git commit -a (add -s to add Signed-off-by line at the end of the
commit message)
 (repeat as necessary)
 ------------------------------------------------
-- 
1.4.4.gef06


-- 
Paolo
http://www.linkedin.com/pub/0/132/9a3


From 1d1eed70816997eeb181a5493cec9f58467bd01e Mon Sep 17 00:00:00 2001
From: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Date: Mon, 20 Nov 2006 23:28:16 +0100
Subject: [PATCH] Documentation: Teach the reader about git commit -a -s

I think it's important to mention, in the collaboration section,
that is possible to use the -s option to add the Signed-off-by
line

Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
---
 Documentation/tutorial.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt
index 554ee0a..402afdf 100644
--- a/Documentation/tutorial.txt
+++ b/Documentation/tutorial.txt
@@ -200,7 +200,7 @@ Bob then makes some changes and commits
 
 ------------------------------------------------
 (edit files)
-$ git commit -a
+$ git commit -a (add -s to add Signed-off-by line at the end of the commit message)
 (repeat as necessary)
 ------------------------------------------------
 
-- 
1.4.4.gef06
J. Bruce Fields· Nov 20, 2006, 22:52 UTC · re: Paolo Ciarrocchi · lore

Re: [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s

On Mon, Nov 20, 2006 at 11:30:56PM +0100, Paolo Ciarrocchi wrote:
Show 5 quoted lines
> I think it's important to mention, in the collaboration section,
> that is possible to use the -s option to add the Signed-off-by
> line
> 
> Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>

The -s option is easy to learn later, and isn't really necessary for basic project management; I'd rather leave it out of the first tutorial.

(In fact, the best place for it may be in SubmittingPatches or equivalent for the particular project.)

Junio C Hamano· Nov 20, 2006, 23:03 UTC · re: Paolo Ciarrocchi · lore

Re: [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s

"Paolo Ciarrocchi" <paolo.ciarrocchi@gmail.com> writes:
Show 5 quoted lines
> I think it's important to mention, in the collaboration section,
> that is possible to use the -s option to add the Signed-off-by
> line
>
> Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>

S-O-B is a project convention that follows the patch acceptance policy similar to the kernel, and I am a bit reluctant to tell people to use -s before making it clear what the legal intent of that line is. And git tutorial is not the place to talk about the patch acceptance policy of the git project.

So instead, my preference is to suggest people to use "commit -s" in "Documentation/SubmittingPatches" section. That _is_ about the git project, and I think it helps the users that the same rule/tip applies to the kernel by making it clear that the convention and legal intent of S-O-B were borrowed from them.

I am slightly disturbed by 
Show 6 quoted lines
> ------------------------------------------------
> (edit files)
> +$ git commit -a (add -s to add Signed-off-by line at the end of the
> commit message)
> (repeat as necessary)
> ------------------------------------------------

this formatting. The examples that begin with '$' are meant to be "copy-me" examples, and we do "# comment" elsewhere for exactly that reason.

If your MUA corrupts patches, then working it around by using attachment is tolerated, but please do try to see if you can make your MUA behave first. Attachments are hard to comment on inline.

If you need to do an attachment, please do not include the patch twice. That is a lot worse than having your patch only in the attachment. I need to detach only the attachment part, compare it with what were discussed on the list based on the patch that was in the non-attachment part of your message to make sure there is no inconsistency between the two, and then apply the one from the attachment separately.

Instead, make the first "text" part of the multipart to contain the proposed commit log message, and make sure that the rest of the message (if multipart, then mailinfo will unwrap them for me and concatenate them together after the first '---' in the cover text) does not have the same patch twice.

Your message has the first text part in "format=flawed", which included a corrupted patch, and then the attachment contained a full format-patch output. As a result, taken as a whole the message includes the patch twice (once corrupted and then uncorrupted). Please don't.

← back to recent threads