git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bert Wesarg <bert.wesarg@googlemail.com>
To: Jamey Sharp <jamey@minilop.net>
Cc: Junio C Hamano <gitster@pobox.com>,
	"Shawn O. Pearce" <spearce@spearce.org>,
	Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	Jeff King <peff@peff.net>, Jakub Narebski <jnareb@gmail.com>,
	git@vger.kernel.org, Josh Triplett <josh@joshtriplett.org>
Subject: Re: [PATCH 2/4] Add infrastructure for ref namespaces
Date: Tue, 7 Jun 2011 21:12:09 +0200	[thread overview]
Message-ID: <BANLkTika2C9iw7E6Z-HRW=4KNstYqMbxrw@mail.gmail.com> (raw)
In-Reply-To: <1307470885-4018-3-git-send-email-jamey@minilop.net>

On Tue, Jun 7, 2011 at 20:21, Jamey Sharp <jamey@minilop.net> wrote:
> diff --git a/git.c b/git.c
> index 89721d4..98cbf7b 100644
> --- a/git.c
> +++ b/git.c
> @@ -126,6 +126,20 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
>                        setenv(GIT_DIR_ENVIRONMENT, cmd + 10, 1);
>                        if (envchanged)
>                                *envchanged = 1;
> +               } else if (!strcmp(cmd, "--namespace")) {
> +                       if (*argc < 2) {
> +                               fprintf(stderr, "No directory given for --namespace.\n" );

This 'directory' is probably misnamed here.

Bert

> +                               usage(git_usage_string);
> +                       }
> +                       setenv(GIT_NAMESPACE_ENVIRONMENT, (*argv)[1], 1);
> +                       if (envchanged)
> +                               *envchanged = 1;
> +                       (*argv)++;
> +                       (*argc)--;
> +               } else if (!prefixcmp(cmd, "--namespace=")) {
> +                       setenv(GIT_NAMESPACE_ENVIRONMENT, cmd + 12, 1);
> +                       if (envchanged)
> +                               *envchanged = 1;
>                } else if (!strcmp(cmd, "--work-tree")) {
>                        if (*argc < 2) {
>                                fprintf(stderr, "No directory given for --work-tree.\n" );

  reply	other threads:[~2011-06-07 19:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06  6:29 What's cooking in git.git (Jun 2011, #01; Sun, 5) Junio C Hamano
2011-06-06  7:16 ` Johannes Sixt
2011-06-06  7:38   ` Erik Faye-Lund
2011-06-07 18:21 ` Jamey Sharp
2011-06-07 18:21   ` [PATCH 1/4] Fix prefix handling in ref iteration functions Jamey Sharp
2011-06-07 18:21   ` [PATCH 2/4] Add infrastructure for ref namespaces Jamey Sharp
2011-06-07 19:12     ` Bert Wesarg [this message]
2011-06-07 22:25       ` Josh Triplett
2011-06-07 18:21   ` [PATCH 3/4] Support ref namespaces for remote repositories via upload-pack and receive-pack Jamey Sharp
2011-06-07 18:21   ` [PATCH 4/4] Add documentation for ref namespaces Jamey Sharp
2011-08-23 10:38     ` Ævar Arnfjörð Bjarmason
2011-08-23 17:19       ` Junio C Hamano
2011-08-24 12:30         ` Ævar Arnfjörð Bjarmason
2011-09-16  0:22       ` Re* " Junio C Hamano
2011-09-16  3:40         ` Jamey Sharp
2011-09-16 16:20           ` Junio C Hamano
2011-06-07 18:59   ` What's cooking in git.git (Jun 2011, #01; Sun, 5) 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='BANLkTika2C9iw7E6Z-HRW=4KNstYqMbxrw@mail.gmail.com' \
    --to=bert.wesarg@googlemail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jamey@minilop.net \
    --cc=jnareb@gmail.com \
    --cc=josh@joshtriplett.org \
    --cc=peff@peff.net \
    --cc=spearce@spearce.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).