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

Re: [PATCH v2] submodule: port subcommand 'set-branch' from shell to C

From
Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Date
May 20, 2020, 13:12 UTC
Message-ID
<b96324d4-04bd-8f64-e334-d3613dc3be6f@gmail.com>
In-Reply-To
<20200520121530.GA7992@konoha>
Hi Shourya,
On 20-05-2020 17:45, Shourya Shukla wrote:
Show 15 quoted lines
> On 19/05 02:57, Eric Sunshine wrote:
>> On Tue, May 19, 2020 at 2:27 PM Shourya Shukla
>> <shouryashukla.oo@gmail.com> wrote:
>>> +       if (opt_branch && opt_default)
>>> +               die(_("--branch and --default do not make sense together"));
>>
>> A more precise way to say this is:
>>
>>      die(_("--branch and --default are mutually exclusive"));
> 
> Will that be clear to everyone? What I mean is maybe a person from a
> non-mathematical background (someone doing programming as a hobby maybe)
> will not grasp at this at one go and will have to search it's meaning
> online. Isn't it fine as-is?
> 

While "mutually exclusive" might be prominently used in mathematics. I don't think it is only understandable by people with a mathematical background.

Moreover, I see 183 results in 36 files for "mutually exclusive" in git.git (including translation files). So, this isn't anything new.

I agree with Eric's suggestion. It makes the error message concise which is a nice side benefit.

-- 
Sivaraam
Previous: Shourya ShuklaNext: Junio C Hamano
Message 4 of 6 in “submodule: port subcommand 'set-branch' from shell to C”
  1. submodule: port subcommand 'set-branch' from shell to CShourya Shukla, May 19, 2020
  2. Eric SunshineMay 19, 2020
  3. Shourya ShuklaMay 20, 2020
  4. Kaartic SivaraamMay 20, 2020
  5. Junio C HamanoMay 20, 2020
  6. Eric SunshineMay 20, 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.