git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: Better explain git-commit --author implications

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 18, 2008, 04:55 UTC
Message-ID
<7vfxmuec46.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<48F95974.3010503@devslashzero.com>
Abhijit Bhopatkar <bain@devslashzero.com> writes:
Show 29 quoted lines
> '--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.

Previous: Abhijit BhopatkarNext: Abhijit Bhopatkar
Message 2 of 3 in “Documentation: Better explain git-commit --author implications”
  1. Documentation: Better explain git-commit --author implicationsAbhijit Bhopatkar, Oct 18, 2008
  2. Junio C HamanoOct 18, 2008
  3. Documentation: Clarify '--signoff' for git-commitAbhijit Bhopatkar, Oct 19, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.