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

Re: Re* [PATCH 4/4] Add documentation for ref namespaces

From
Jamey Sharp <jamey@minilop.net>
Date
Sep 16, 2011, 03:40 UTC
Message-ID
<20110916034051.GH3144@oh.minilop.net>
In-Reply-To
<7vaaa5pc8q.fsf_-_@alter.siamese.dyndns.org>
On Thu, Sep 15, 2011 at 05:22:29PM -0700, Junio C Hamano wrote:
Show 15 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> 
> > On Tue, Jun 7, 2011 at 20:21, Jamey Sharp <jamey@minilop.net> wrote:
> >
> >> Document the namespace mechanism in a new gitnamespaces(7) page.
> >> Reference it from receive-pack and upload-pack.
> >
> > This breaks the build on older asciidoc versions, the fix is to do
> > what I did in f5008f56d5aba06598e1c6272f4f55b4ee4bb016.
> 
> Earlier I sent out a tongue-in-cheek "like this" that had a completely
> bogus SYNOPSIS section that is unusable in a released version of Git,
> hoping that somebody who _care_ more about the feature that the page
> describes would give us a better wording, but unfortunately it never
> happened.

I'm afraid your wit was too subtle for me, as I believed your proposal was serious and would be applied as-is. I assumed AsciiDoc was going to magically omit the bogus synopsis, somehow. Perhaps it should detect when people are making fun of it, and ignore them then?

Your rationale for giving a more specific synopsis is sound, although:
1) git http-backend also supports the environment variable because it's
inherited by the underlying upload-pack and receive-pack; and 2) the
environment variable is an alternative to a general git command-line
option. How much detail do you want in a synopsis?

Assuming that you're happy with this level of detail, and that the AsciiDoc syntax is correct (I'm not familiar enough with it), I'm happy with the patch you propose---

Reviewed-by: Jamey Sharp <jamey@minilop.net>
Show 48 quoted lines
> So here is a more realistic replacement, so that we won't have to suffer
> by complaints from people with older AsciiDoc saying "the release does not
> build". If we were to include this in 1.7.7 final, we now need to make
> sure we won't to have to hear from people with newer AsciiDoc saying "why
> do we have nonsense in SYNOPSIS section", so your help is needed here.
> 
> I explicitly avoided saying:
> 
> 	[verse]
> 	export GIT_NAMESPACE=<namespace>
> 
> as nothing other than the selected transports seems to pay attention to
> this environment variable.
> 
> -- >8 --
> Subject: [PATCH] Documentation/gitnamespaces.txt: cater to older asciidoc
> 
> Older asciidoc (e.g. 8.2.5 on Centos 5.5) is unhappy if a manpage does not
> have a SYNOPSIS section. Show a sample (and a possibly bogus) command line
> of running two commands that pay attention to this environment variable
> with a customized value.
> 
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
> ---
>  Documentation/gitnamespaces.txt |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/Documentation/gitnamespaces.txt b/Documentation/gitnamespaces.txt
> index ed8924e..c6713cf 100644
> --- a/Documentation/gitnamespaces.txt
> +++ b/Documentation/gitnamespaces.txt
> @@ -5,6 +5,13 @@ NAME
>  ----
>  gitnamespaces - Git namespaces
>  
> +SYNOPSIS
> +--------
> +[verse]
> +GIT_NAMESPACE=<namespace> 'git upload-pack'
> +GIT_NAMESPACE=<namespace> 'git receive-pack'
> +
> +
>  DESCRIPTION
>  -----------
>  
> -- 
> 1.7.7.rc1.3.g559357
> 
Previous: Junio C HamanoNext: Junio C Hamano
Message 15 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.