{"thread":{"id":"12873","subject":"What git config --replace-all ONE_ARG should do?","startedAt":"2008-03-26T13:50:57Z","lastAt":"2008-03-26T21:24:13Z","messageCount":2,"participants":["Carlos Rica","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"73137","messageId":"1b46aba20803260650o5e425250sb532a3b3197a1ecf@mail.gmail.com","threadId":"12873","inReplyTo":null,"subject":"What git config --replace-all ONE_ARG should do?","fromName":"Carlos Rica","fromEmail":"jasampler@gmail.com","sentAt":"2008-03-26T13:50:57Z","receivedAt":"2008-03-26T13:50:57Z","isPatch":false,"sender":{"key":"jasampler@gmail.com","avatar":null},"body":"The command 'git config --replace-all ONE_ARG' currently\ntries to do the same as the command 'git config NAME VALUE',\nusing --replace-all as the NAME and ONE_ARG as VALUE,\nprinting \"key does not contain a section: --replace-all\".\n\nWhat this command should do? I'm almost finnishing\nbuitin-config.c to use parse-options and I need to know\nif that command should do something or just showing\nthe help and exit in such case.\n\nI think that --replace-all should always receive at least\ntwo arguments. The documentation currently says:\ngit-config ... --replace-all name [value [value_regex]]\nand current tests are only cheking two arguments.\n\nSince I cannot imagine a consistent action to do\nwhen only the name is given and nobody complains\nI will do this to print the help message and exit.\n\nCheers\n\n--\nCarlos\n"},{"id":"73166","messageId":"7v7ifpch6q.fsf@gitster.siamese.dyndns.org","threadId":"12873","inReplyTo":"1b46aba20803260650o5e425250sb532a3b3197a1ecf@mail.gmail.com","subject":"Re: What git config --replace-all ONE_ARG should do?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-03-26T21:24:13Z","receivedAt":"2008-03-26T21:24:13Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Carlos Rica\" <jasampler@gmail.com> writes:\n\n> The command 'git config --replace-all ONE_ARG' currently\n> tries to do the same as the command 'git config NAME VALUE',\n> using --replace-all as the NAME and ONE_ARG as VALUE,\n> printing \"key does not contain a section: --replace-all\".\n\nThat sounds silly, and I think it is an improvement to error out in such a\ncase.\n"}]}