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

Re: [PATCH v2] rebase -i: replace an echo command by printf

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 17, 2014, 19:22 UTC
Message-ID
<xmqqa9coeikj.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140314235642.GA6917@ibr.ch>
Uwe Storbeck <uwe@ibr.ch> writes:
> to avoid shell dependent behavior.

Please do not start the body of the log message half-sentence. The title ought to be a freestanding "title", not just a beginning half of a sentence that needs to be read with the rest to be understood.

Something like this, perhaps.
    Subject: [PATCH] rebase -i: do not "echo" random user-supplied strings
    In some places we "echo" a string that come from a commit log message,
    which may have a backslash sequence that is interpreted by shells
    (POSIX.1 allows this), most notably "dash".
    A commit message which contains the string '\n' (or ends with the
    string '\c') may result in a garbage line in the todo list of an
    interactive rebase which causes the rebase to fail.

Will tentatively queue with the above rewrite, but if you feel strongly, please send an replacement.

Thanks.
Previous: Uwe StorbeckNext: Uwe Storbeck
Message 2 of 3 in “rebase -i: replace an echo command by printf”
  1. rebase -i: replace an echo command by printfUwe Storbeck, Mar 14, 2014
  2. Junio C HamanoMar 17, 2014
  3. Uwe StorbeckMar 18, 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.