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

Re: [PATCH] commit: add commit.signoff config option

From
CFCaio Marcelo de Oliveira Filho <cmarcelo@gmail.com>
Date
Jun 25, 2015, 14:55 UTC
Message-ID
<CADstYCZ6aDN=CNsX_fEnJmB1xF4L_M=j=G2RuKyfK5wxNkH41g@mail.gmail.com>
In-Reply-To
<CAP8UFD1kbu4uB1Xaf_jWdQUBzkSJ-Z3_o3NT0Wb6GNyRG=jSLw@mail.gmail.com>

On Thu, Jun 25, 2015 at 5:43 AM, Christian Couder <christian.couder@gmail.com> wrote:

Show 9 quoted lines
> You can use a commit template.
>
> Or you can use the "commit-msg" hook. For example with commands like:
>
> grep "^Signed-off-by:" "$1" ||
> echo "Signed-off-by: $(git config user.name) <$(git config user.email)>" >>"$1"
>
> If you have more complex needs, there is also "git interpret-trailers"
> (see the examples in the man page).

Thanks for the references. I was initially using a commit template to solve the problem. But I've considered that since we already handle "Signed-off-by" somewhat specially (e.g. "commit -s"), and how common this case is, it was worth adding a config option.

-- 
Caio Marcelo de Oliveira Filho
Previous: Christian Couder
Message 3 of 3 in “commit: add commit.signoff config option”
  1. commit: add commit.signoff config optionCaio Marcelo de Oliveira Filho, Jun 25, 2015
  2. Christian CouderJun 25, 2015
  3. Caio Marcelo de Oliveira FilhoJun 25, 2015

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.