* [PATCH] Documentation: Better explain git-commit --author implications
@ 2008-10-18 3:35 Abhijit Bhopatkar
2008-10-18 4:55 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Abhijit Bhopatkar @ 2008-10-18 3:35 UTC (permalink / raw)
To: git; +Cc: gitster
'--author' changes the author name and email, but the
documentation was not clear that it will not affect the
'--signoff' option which will still use the user's name and
email from the git settings.
Signed-off-by: Abhijit Bhopatkar <bain@devslashzero.com>
---
Documentation/git-commit.txt | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index eb05b0f..17b69fa 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -78,7 +78,8 @@ OPTIONS
Override the author name used in the commit. You can use the
standard `A U Thor <author@example.com>` format. Otherwise,
an existing commit that matches the given string and its author
- name is used.
+ name is used. This has no effect on singoff line which will
+ still use commiter name and email .
-m <msg>::
--message=<msg>::
@@ -95,6 +96,7 @@ OPTIONS
-s::
--signoff::
Add Signed-off-by line at the end of the commit message.
+ '--author' option has no effect on this line.
-n::
--no-verify::
--
1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: Better explain git-commit --author implications
2008-10-18 3:35 [PATCH] Documentation: Better explain git-commit --author implications Abhijit Bhopatkar
@ 2008-10-18 4:55 ` Junio C Hamano
2008-10-19 4:19 ` [PATCH] Documentation: Clarify '--signoff' for git-commit Abhijit Bhopatkar
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2008-10-18 4:55 UTC (permalink / raw)
To: Abhijit Bhopatkar; +Cc: git
Abhijit Bhopatkar <bain@devslashzero.com> writes:
> '--author' changes the author name and email, but the
> documentation was not clear that it will not affect the
> '--signoff' option which will still use the user's name and
> email from the git settings.
>
> Signed-off-by: Abhijit Bhopatkar <bain@devslashzero.com>
> ---
> Documentation/git-commit.txt | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
> index eb05b0f..17b69fa 100644
> --- a/Documentation/git-commit.txt
> +++ b/Documentation/git-commit.txt
> @@ -78,7 +78,8 @@ OPTIONS
> Override the author name used in the commit. You can use the
> standard `A U Thor <author@example.com>` format. Otherwise,
> an existing commit that matches the given string and its author
> - name is used.
> + name is used. This has no effect on singoff line which will
> + still use commiter name and email .
>
> -m <msg>::
> --message=<msg>::
> @@ -95,6 +96,7 @@ OPTIONS
> -s::
> --signoff::
> Add Signed-off-by line at the end of the commit message.
> + '--author' option has no effect on this line.
I think it is much clearer if you do not say what does _not_ affect
things, but instead say what does. So let's do this instead.
--signoff::
Add Signed-off-by line by the committer at the end of the commit
log message.
And no other changes.
By making it clear that signoff is about the committer, it would be clear
that --author (or GIT_AUTHOR_NAME environment variable) would not affect
it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Documentation: Clarify '--signoff' for git-commit
2008-10-18 4:55 ` Junio C Hamano
@ 2008-10-19 4:19 ` Abhijit Bhopatkar
0 siblings, 0 replies; 3+ messages in thread
From: Abhijit Bhopatkar @ 2008-10-19 4:19 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
'--signoff' uses commiter name always to add the signoff line,
make it explicit in the documentation.
Signed-off-by: Abhijit Bhopatkar <bain@devslashzero.com>
---
Documentation/git-commit.txt | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index eb05b0f..713ab0a 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -94,7 +94,8 @@ OPTIONS
-s::
--signoff::
- Add Signed-off-by line at the end of the commit message.
+ Add Signed-off-by line by the commiter at the end of the commit
+ log message.
-n::
--no-verify::
--
1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-19 4:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-18 3:35 [PATCH] Documentation: Better explain git-commit --author implications Abhijit Bhopatkar
2008-10-18 4:55 ` Junio C Hamano
2008-10-19 4:19 ` [PATCH] Documentation: Clarify '--signoff' for git-commit Abhijit Bhopatkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).