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

Re: [PATCH] commit-tree: don't append a newline with -F

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 9, 2017, 03:22 UTC
Message-ID
<xmqqmv64y2sf.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAEVs+zYrKxX0S9LMoBLB3vqG5n3PuMGMCehipbpCmFA7dW95qw@mail.gmail.com>
Ross Kabus <rkabus@aerotech.com> writes:
Show 14 quoted lines
> On Thu, Sep 7, 2017 at 9:35 PM, Junio C Hamano <gitster@pobox.com> wrote:
>>     commit-tree: do not complete line in -F input
>>
>>     "git commit-tree -F <file>", unlike "cat <file> | git
>>     commit-tree" (i.e. feeding the same contents from the standard
>>     input), added a missing final newline when the input ended in an
>>     incomplete line.
>>
>>     Correct this inconsistency by leaving the incomplete line as-is,
>>     as erring on the side of not touching the input is preferrable
>>     and expected for a plumbing command like "commit-tree".
>
> That all makes sense to me and is clearer too, I like this change.
> Do I need to resubmit the patch or will you just use that text instead?

Unless the change is in the middle of a large series or require more involved edit [*1*], it is perfectly fine to tell me the maintainer to do these small menial changes on behalf of you---you explicitly need to tell me what you want to happen, though.

Thanks.
[Footnote]
*1* ... in which case we have a larger chance of the maintainer
    screwing up while attempting to do so, and I'd prefer to see an
    updated version posted on the list.  That way, we can benefit
    from extra set of eyeballs watching our exchange from the
    sideline.
Previous: Ross KabusNext: Ross Kabus
Message 4 of 5 in “commit-tree: don't append a newline with -F”
  1. commit-tree: don't append a newline with -FRoss Kabus, Sep 7, 2017
  2. Junio C HamanoSep 8, 2017
  3. Ross KabusSep 8, 2017
  4. Junio C HamanoSep 9, 2017
  5. commit-tree: do not complete line in -F inputRoss Kabus, Sep 14, 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.