From: "Carlos Rica" <jasampler@gmail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: What git config --replace-all ONE_ARG should do?
Date: Wed, 26 Mar 2008 14:50:57 +0100 [thread overview]
Message-ID: <1b46aba20803260650o5e425250sb532a3b3197a1ecf@mail.gmail.com> (raw)
The command 'git config --replace-all ONE_ARG' currently
tries to do the same as the command 'git config NAME VALUE',
using --replace-all as the NAME and ONE_ARG as VALUE,
printing "key does not contain a section: --replace-all".
What this command should do? I'm almost finnishing
buitin-config.c to use parse-options and I need to know
if that command should do something or just showing
the help and exit in such case.
I think that --replace-all should always receive at least
two arguments. The documentation currently says:
git-config ... --replace-all name [value [value_regex]]
and current tests are only cheking two arguments.
Since I cannot imagine a consistent action to do
when only the name is given and nobody complains
I will do this to print the help message and exit.
Cheers
--
Carlos
next reply other threads:[~2008-03-26 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 13:50 Carlos Rica [this message]
2008-03-26 21:24 ` What git config --replace-all ONE_ARG should do? Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1b46aba20803260650o5e425250sb532a3b3197a1ecf@mail.gmail.com \
--to=jasampler@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).