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

Re: [PATCH] rebase-i: loosen over-eager check_bad_cmd check

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Sep 30, 2015, 20:04 UTC
Message-ID
<CAPig+cTadBNcTRHzTti-WuQSz=hRUsJYK1w9xiW6m=uOYCdCMQ@mail.gmail.com>
In-Reply-To
<1443643292-14505-1-git-send-email-Matthieu.Moy@imag.fr>
On Wed, Sep 30, 2015 at 4:01 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
Show 19 quoted lines
> 804098bb (git rebase -i: add static check for commands and SHA-1,
> 2015-06-29) tried to check all insns before running any in the todo
> list, but it did so by implementing its own parser that is a lot
> stricter than necessary.  We used to allow lines that are indented
> (including comment lines), and we used to allow a whitespace between
> the insn and the commit object name to be HT, among other things,
> that are flagged as an invalid line by mistake.
>
> Fix this by using the same tokenizer that is used to parse the todo
> list file in the new check.
>
> Whether it's a good thing to accept indented comments is
> debatable (other commands like "git commit" do not accept them), but we
> already accepted them in the past, and some people and scripts rely on
> this behavior. Also, a line starting with space followed by a '#' cannot
> have any meaning other than being a comment, hence it doesn't harm to
> accept them as comments.
>
> Largely based on patch by: Junio C Hamano <gitster@pobox.com>
Missing sign-off.
Previous: Matthieu MoyNext: Matthieu Moy
Message 12 of 13 in “rebase: accept indented comments (fixes regression)”
  1. rebase: accept indented comments (fixes regression)Matthieu Moy, Sep 30, 2015
  2. Remi Galan AlfonsoSep 30, 2015
  3. Junio C HamanoSep 30, 2015
  4. Matthieu MoySep 30, 2015
  5. Junio C HamanoSep 30, 2015
  6. Junio C HamanoSep 30, 2015
  7. Matthieu MoySep 30, 2015
  8. Junio C HamanoSep 30, 2015
  9. 1/2 rebase-i: explicitly accept tab as separator in commandsMatthieu Moy, Oct 1, 2015
  10. 2/2 rebase-i: loosen over-eager check_bad_cmd checkMatthieu Moy, Oct 1, 2015
  11. rebase-i: loosen over-eager check_bad_cmd checkMatthieu Moy, Sep 30, 2015
  12. Eric SunshineSep 30, 2015
  13. rebase-i: loosen over-eager check_bad_cmd checkMatthieu Moy, Sep 30, 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.