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

Re: [PATCH] rebase -i: remove undocumented '--verify' flag

From
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Date
Nov 22, 2010, 13:49 UTC
Message-ID
<AANLkTi=VXpT0PZvm4by0CvaLQ=EfuhMywQiHszYyQ_v_@mail.gmail.com>
In-Reply-To
<201011221414.15982.trast@student.ethz.ch>
On Mon, Nov 22, 2010 at 8:14 AM, Thomas Rast <trast@student.ethz.ch> wrote:
Show 21 quoted lines
> Matthieu Moy wrote:
>> Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> writes:
>>
>> > Remove the undocumented and unused '--verify' flag from interactive
>> > rebase.
>>
>> I don't think this change is good. If a command has a --no-whatever
>> flag, one expects the --whatever flag to exist too, even if it's a
>> no-op.
> [...]
>> I think a better change would be to add a comment like
>>
>> --verify)
>>       # no-op, exists because --no-verify exists too.
>
> Shouldn't that be
>
>  OK_TO_SKIP_PRE_REBASE=
>
> instead, so that it undoes the effect of an earlier --no-verify?
>

Yes. But because it did not work like that, it was not documented and it was only accepted by interactive rebase, I thought it was best to just remove it.

However, I do understand Matthieu's point about having a '--whatever' option for every '--no-whatever' option. So, if that is the general opinion, I wouldn't mind adding the flag to non-interactive rebase as well. As long as it is consistent, it would simplify things for the user (and, which is more important to me right now :-), for me while refactoring this code.)

/Martin
Previous: Martin von Zweigbergk
Message 11 of 11 in “rebase -i: remove undocumented '--verify' flag”
  1. rebase -i: remove undocumented '--verify' flagMartin von Zweigbergk, Nov 22, 2010
  2. Matthieu MoyNov 22, 2010
  3. Thomas RastNov 22, 2010
  4. Matthieu MoyNov 22, 2010
  5. Martin von ZweigbergkNov 22, 2010
  6. Kevin BallardNov 23, 2010
  7. Jeff KingNov 23, 2010
  8. Junio C HamanoNov 23, 2010
  9. Junio C HamanoNov 23, 2010
  10. Martin von ZweigbergkNov 24, 2010
  11. Martin von ZweigbergkNov 22, 2010

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.