Git development
 help / color / mirror / Atom feed
* [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s
@ 2006-11-20 22:30 Paolo Ciarrocchi
  2006-11-20 22:52 ` J. Bruce Fields
  2006-11-20 23:03 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Ciarrocchi @ 2006-11-20 22:30 UTC (permalink / raw)
  To: Git Mailing List

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

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


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

[-- Attachment #2: 0001-Documentation-Teach-the-reader-about-git-commit-a-s.txt --]
[-- Type: text/plain, Size: 1007 bytes --]

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s
  2006-11-20 22:30 [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s Paolo Ciarrocchi
@ 2006-11-20 22:52 ` J. Bruce Fields
  2006-11-20 23:03 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: J. Bruce Fields @ 2006-11-20 22:52 UTC (permalink / raw)
  To: Paolo Ciarrocchi; +Cc: Git Mailing List

On Mon, Nov 20, 2006 at 11:30:56PM +0100, Paolo Ciarrocchi wrote:
> 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.)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s
  2006-11-20 22:30 [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s Paolo Ciarrocchi
  2006-11-20 22:52 ` J. Bruce Fields
@ 2006-11-20 23:03 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2006-11-20 23:03 UTC (permalink / raw)
  To: Paolo Ciarrocchi; +Cc: git

"Paolo Ciarrocchi" <paolo.ciarrocchi@gmail.com> writes:

> 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 

> ------------------------------------------------
> (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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-20 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-20 22:30 [PATCH] Documentation tutorial.txt: Teach the reader about git commit -a -s Paolo Ciarrocchi
2006-11-20 22:52 ` J. Bruce Fields
2006-11-20 23:03 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox