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

Re: git cvsimport and case-insensitive config

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 30, 2010, 21:20 UTC
Message-ID
<7vr5n1v74x.fsf@alter.siamese.dyndns.org>
In-Reply-To
<cb7bb73a1003301105v691624sdcdadf6809c50b89@mail.gmail.com>
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> writes:
> We might be able to skip (2) by relying on the fact that if the
> lowercase is boolean, the uppercase isn't, and conversely.

That was the idea I wrote in an earlier draft of my response that I later scrapped. I started with "cvsimport.a? If it is 'true' then that is -a; if it names an existing file, then it is -A." I continued the draft up to '-p' vs '-P' (the former would begin with a hyphen, the latter likely wouldn't). But I don't think you can reliably guess -s/-S (both strings).

A bigger reason is that, if you have _any_ combination that you cannot reliably guess, you would either need the user to ask for help, or you need to convert by reading the configuration file case-sensitively yourself to come up with a reliable conversion. I opted for the latter.

Previous: Giuseppe BilottaNext: Giuseppe Bilotta
Message 4 of 9 in “git cvsimport and case-insensitive config”
  1. Giuseppe BilottaMar 30, 2010
  2. Junio C HamanoMar 30, 2010
  3. Giuseppe BilottaMar 30, 2010
  4. Junio C HamanoMar 30, 2010
  5. Giuseppe BilottaMar 30, 2010
  6. Junio C HamanoMar 30, 2010
  7. Giuseppe BilottaMar 31, 2010
  8. Junio C HamanoMar 31, 2010
  9. Giuseppe BilottaMar 31, 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.