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

Re: [PATCH] push options: fail properly in the stateless case

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 8, 2017, 23:01 UTC
Message-ID
<xmqq7f50uw0q.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79kaszczpnu+VEV3y+61qgji-0+vRFVLk8Q1+BbSDgiHz1Q@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 16 quoted lines
>>> +'option push-option <c-string>::
>>> +     Transmit this push option.
>>> +
>>
>> There is no "c-string" in the current documentation used or
>> defined.  The closest thing I found is
>>
>>     ... that field will be quoted in the manner of a C string ...
>>
>> in git-status page, but I do not think you send the value for an
>> push-option after running quote_c_style(), so I am puzzled.
>
> When implementing push options, we discussed that and according to
> Documentation/git-push:
>
>     The given string must not contain a NUL or LF character.

OK, so "Transmit <string> as a push option" is sufficient, as the string is sent as-is. OK.

Thanks.
Previous: Stefan BellerNext: Stefan Beller
Message 4 of 6 in “push options: fail properly in the stateless case”
  1. push options: fail properly in the stateless caseStefan Beller, Feb 8, 2017
  2. Junio C HamanoFeb 8, 2017
  3. Stefan BellerFeb 8, 2017
  4. Junio C HamanoFeb 8, 2017
  5. [PATCHv2] push options: pass push options to the transport helperStefan Beller, Feb 8, 2017
  6. Stefan BellerFeb 10, 2017

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.