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

Re: [PATCH v13 00/11] Add interpret-trailers builtin

From
Christian Couder <chriscool@tuxfamily.org>
Date
Sep 15, 2014, 06:04 UTC
Message-ID
<20140915.080429.1739849931027469667.chriscool@tuxfamily.org>
In-Reply-To
<xmqqk35kwfvy.fsf@gitster.dls.corp.google.com>
From: Junio C Hamano <gitster@pobox.com>
Show 9 quoted lines
> Christian Couder <chriscool@tuxfamily.org> writes:
> 
>>   '=' is always accepted as separator when parsing
>>   "--trailer '<token><sep><value>'" command line arguments, for
>>   compatibility with other git commands
> 
> Hmph.  Which of other commands take "--option foo=bar"?
> 
> Puzzled...

Most commands accept "--option=value". I know that it is different from "--option foo=bar", but it could reduce user mistakes if we also accept "--trailer foo=bar".

And if we accept it, then whatever the user has configured in the "trailer.separators" option, "--trailer foo=bar" will always work and add the default separator. So it is a generic way to add "foo<separator> bar" to the trailers whatever the user want as a separator.

But maybe I should reword the documentation to add this reason. (I did not do that in the v14 series I just sent.)

Thanks, Christian.

Previous: Junio C Hamano
Message 18 of 18 in “Add interpret-trailers builtin”
  1. 00/11 Add interpret-trailers builtinChristian Couder, Aug 16, 2014
  2. 01/11 trailer: add data structures and basic functionsChristian Couder, Aug 16, 2014
  3. 02/11 trailer: process trailers from input message and argumentsChristian Couder, Aug 16, 2014
  4. 03/11 trailer: read and process config informationChristian Couder, Aug 16, 2014
  5. 04/11 trailer: process command line trailer argumentsChristian Couder, Aug 16, 2014
  6. 05/11 trailer: parse trailers from file or stdinChristian Couder, Aug 16, 2014
  7. 06/11 trailer: put all the processing together and printChristian Couder, Aug 16, 2014
  8. 07/11 trailer: add interpret-trailers commandChristian Couder, Aug 16, 2014
  9. 08/11 trailer: add tests for "git interpret-trailers"Christian Couder, Aug 16, 2014
  10. 09/11 trailer: execute command from 'trailer.<name>.command'Christian Couder, Aug 16, 2014
  11. 10/11 trailer: add tests for commands in config fileChristian Couder, Aug 16, 2014
  12. 11/11 Documentation: add documentation for 'git interpret-trailers'Christian Couder, Aug 16, 2014
  13. Marc BranchaudAug 20, 2014
  14. Christian CouderAug 21, 2014
  15. Marc BranchaudAug 21, 2014
  16. Christian CouderAug 16, 2014
  17. Junio C HamanoSep 3, 2014
  18. Christian CouderSep 15, 2014

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.