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

Re: [PATCH 2/4] Add infrastructure for ref namespaces

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Jun 7, 2011, 19:12 UTC
Message-ID
<BANLkTika2C9iw7E6Z-HRW=4KNstYqMbxrw@mail.gmail.com>
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:
Show 11 quoted lines
> 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
Show 14 quoted lines
> +                               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" );
Previous: Jamey SharpNext: Josh Triplett
Message 7 of 17 in “What's cooking in git.git (Jun 2011, #01; Sun, 5)”
  1. Junio C HamanoJun 6, 2011
  2. Johannes SixtJun 6, 2011
  3. Erik Faye-LundJun 6, 2011
  4. Jamey SharpJun 7, 2011
  5. 1/4 Fix prefix handling in ref iteration functionsJamey Sharp, Jun 7, 2011
  6. 2/4 Add infrastructure for ref namespacesJamey Sharp, Jun 7, 2011
  7. Bert WesargJun 7, 2011
  8. Josh TriplettJun 7, 2011
  9. 3/4 Support ref namespaces for remote repositories via upload-pack and receive-packJamey Sharp, Jun 7, 2011
  10. 4/4 Add documentation for ref namespacesJamey Sharp, Jun 7, 2011
  11. Ævar Arnfjörð BjarmasonAug 23, 2011
  12. Junio C HamanoAug 23, 2011
  13. Ævar Arnfjörð BjarmasonAug 24, 2011
  14. Re* [PATCH 4/4] Add documentation for ref namespacesJunio C Hamano, Sep 16, 2011
  15. Jamey SharpSep 16, 2011
  16. Junio C HamanoSep 16, 2011
  17. Junio C HamanoJun 7, 2011

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.