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

Re: [PATCH B v4 1/5] git config: reorganize to use parseopt

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Feb 22, 2009, 17:19 UTC
Message-ID
<94a0d4530902220919t729915dleed932b010ee76b@mail.gmail.com>
In-Reply-To
<7vskm62z9w.fsf@gitster.siamese.dyndns.org>
On Sun, Feb 22, 2009 at 6:48 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> +     else if (actions == ACTION_GET_COLORBOOL) {
>> +             if (argc == 1)
>> +                     stdout_is_tty = git_config_bool("command line", argv[0]);
>> +             else if (argc == 0)
>> +                     stdout_is_tty = isatty(1);
>> +             return get_colorbool(argc != 0);
>> +     }
>
> I see you fixed this from the last series...
Yes, argc != 1 was wrong. Now I've made sure all the tests pass.
-- 
Felipe Contreras
Previous: Junio C HamanoNext: Felipe Contreras
Message 12 of 13 in “git config: reorganization”
  1. 0/5 git config: reorganizationFelipe Contreras, Feb 21, 2009
  2. 1/5 git config: reorganize to use parseoptFelipe Contreras, Feb 21, 2009
  3. 2/5 git config: don't allow multiple config file locationsFelipe Contreras, Feb 21, 2009
  4. 3/5 git config: don't allow multiple variable typesFelipe Contreras, Feb 21, 2009
  5. 4/5 git config: don't allow extra arguments for -e or -l.Felipe Contreras, Feb 21, 2009
  6. 5/5 git config: don't allow --get-color* and variable typeFelipe Contreras, Feb 21, 2009
  7. Junio C HamanoFeb 22, 2009
  8. Felipe ContrerasFeb 22, 2009
  9. Junio C HamanoFeb 22, 2009
  10. Felipe ContrerasMar 7, 2009
  11. Junio C HamanoFeb 22, 2009
  12. Felipe ContrerasFeb 22, 2009
  13. Felipe ContrerasFeb 21, 2009

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.