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

Re: [PATCH] format-patch: cancel useAutoBase if base is invalid

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 17, 2020, 00:43 UTC
Message-ID
<xmqqmu1pteq0.fsf@gitster.c.googlers.com>
In-Reply-To
<xmqqr1r1tfil.fsf@gitster.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 6 quoted lines
> If we are doing the usual "prime with configuration variables and
> then override from the commnad line option" thing, then you cannot
> tell these two cases apart, but I happen to think that it is better
> to fail (and not to ignore silently) consistently whether the
> "compute an appropriate base automatically" came from config or
> command line, so...

If we really need to tell these two apart, we'd invent a new variable (we only need a single bit) to record "did we get this base setting from the command line?" along with what we are already doing. You would need to use a option callback instead of a simple OPT_STRING() to parse the "base" option, but I think it should be straightforward.

Previous: Junio C HamanoNext: Jacob Keller
Message 2 of 4 in “Re: [PATCH] format-patch: cancel useAutoBase if base is invalid”
  1. Junio C HamanoSep 17, 2020
  2. Junio C HamanoSep 17, 2020
  3. Jacob KellerSep 17, 2020
  4. Junio C HamanoSep 18, 2020

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.