git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jonathan Nieder <jrnieder@uchicago.edu>,
	git@vger.kernel.org, Christian Couder <chriscool@tuxfamily.org>,
	Nguyen Thai Ngoc Duy <pclouds@gmail.com>,
	Jon Loeliger <jdl@jdl.com>
Subject: Re: [PATCH 3/7] Documentation: complicate example of "man git-command"
Date: Wed, 2 Jul 2008 17:31:48 -0400	[thread overview]
Message-ID: <20080702213148.GA26921@fieldses.org> (raw)
In-Reply-To: <7vmyl1kvn6.fsf@gitster.siamese.dyndns.org>

On Tue, Jul 01, 2008 at 04:54:53PM -0700, Junio C Hamano wrote:
> "J. Bruce Fields" <bfields@fieldses.org> writes:
> 
> > On Mon, Jun 30, 2008 at 05:10:25PM -0500, Jonathan Nieder wrote:
> >> The manual page for the command invoked as "git clone" is named
> >> git-clone(1), and similarly for the rest of the git commands.
> >> Make sure our first example of this in tutorials makes it clear
> >> that it is the first two words of a command line that make up the
> >> command's name (that is: for example, the effect of "git svn
> >> dcommit" is described in git-svn(1)).
> >
> > Is this confusion really common?
> >
> > I can see how it might be possible in the case of a subcommand that
> > itself has subcommands, but it seems less likely in the two examples you
> > add below (where the third token is an option or a url).  I like your
> > "git svn" example better.  Or "git remote" might be good.
> >
> > --b.
> 
> While I agree with the above, are we ready to talk about "git-svn"
> or "git-remote" that early in the tutorial material?

No, but for the purposes of this example it's not necessary to be
familiar with the command.  (Though it might be less distracting to use
something that'll be discussed early on.)

> We would want to mention the typesetting convention early in the manuals
> (git(7), gittutorial(7) and user-manual.html) as well, so how about...
> 
> 	Conventions used in this document
>         ---------------------------------
> 
> 	When talking about a git subcommand 'cmd', this documentation
> 	typesets the name of it like 'git-cmd', and that is the name you
> 	ask for its manual page.
> 
>         Examples are typeset like this: `$ git cmd` (`$` is your command
> 	prompt, do not actually type it to your shell).  Note that a
> 	subcommand is specified as the first parameter to the 'git'
> 	program when you actually run it from the command line.

I'm not convinced this last sentence is necessary.

> 
> 	E.g. a typical command description may go like this:
> 
>         To propagate the changes you made back to the original subversion
>         repository, you would use 'git-svn dcommit' command.  It does
>         these things (long description here).  Some examples:

> 
>         ------------
> 	$ ... some example command sequence ...
>         $ git svn dcommit
>         ------------

Typographical conventions shouldn't need so much explanation.

I'm curious: Jonathan, was this the original patch the result of a
real-life instance of confusion?  What happened?

--b.

> 
>         For full details, type:
> 
> 	------------
>         $ man git-svn
>         ------------

  reply	other threads:[~2008-07-02 21:32 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-30 21:56 [PATCH 0/7] Some superficial documentation changes Jonathan Nieder
2008-06-30 22:01 ` [PATCH 1/7] Documentation: fix links to tutorials and other new manual pages Jonathan Nieder
2008-06-30 23:30   ` Christian Couder
2008-06-30 22:05 ` [PATCH 2/7] whitespace fix in Documentation/git-repack.txt Jonathan Nieder
2008-06-30 22:10 ` [PATCH 3/7] Documentation: complicate example of "man git-command" Jonathan Nieder
2008-06-30 23:39   ` Christian Couder
2008-07-01 16:23   ` J. Bruce Fields
2008-07-01 23:54     ` Junio C Hamano
2008-07-02 21:31       ` J. Bruce Fields [this message]
2008-07-03  1:45         ` Jonathan Nieder
2008-07-03 18:18           ` J. Bruce Fields
2008-07-03  6:06       ` Christian Couder
2008-07-03  7:44         ` Junio C Hamano
2008-06-30 22:15 ` [PATCH 4/7] git-daemon(1): don't assume git-daemon is in /usr/bin Jonathan Nieder
2008-06-30 22:17 ` [PATCH 5/7] Documentation: prepare to be consistent about "git-" versus "git " Jonathan Nieder
2008-06-30 22:29   ` [PATCH 6/7] Documentation: " Jonathan Nieder
2008-06-30 22:36 ` [RFC/PATCH 7/7] Documentation formatting and cleanup Jonathan Nieder
2008-07-01 13:09   ` Olivier Marin
2008-07-01 21:34     ` Junio C Hamano
2008-07-03  2:09       ` Jonathan Nieder
2008-07-03  2:28     ` Jonathan Nieder
2008-07-01  8:42 ` [PATCH 0/7] Some superficial documentation changes Junio C Hamano
2008-07-03  4:31   ` Jonathan Nieder
2008-07-03  4:47     ` [PATCH 01/15] git-format-patch(1): fix stray \ in output Jonathan Nieder
2008-07-03  4:54     ` [PATCH 02/15] Documentation: fix gitlinks Jonathan Nieder
2008-07-03  5:03     ` [PATCH 03/15] manpages: fix bogus whitespace Jonathan Nieder
2008-07-03 23:55       ` Junio C Hamano
2008-07-04  1:14         ` Jonathan Nieder
2008-07-03  5:08     ` [PATCH 04/15] git(1): add comma Jonathan Nieder
2008-07-03  5:13     ` [PATCH 05/15] git-commit(1): depersonalize description Jonathan Nieder
2008-07-03  5:20     ` [PATCH 06/15] Documentation: rewrap to prepare for "git-" vs "git " change Jonathan Nieder
2008-07-03  5:28     ` [PATCH 07/15] Documentation: more "git-" versus "git " changes Jonathan Nieder
2008-07-03  5:30     ` [PATCH 08/15] gitdiffcore(7): fix awkward wording Jonathan Nieder
2008-07-03  5:36     ` [PATCH 09/15] manpages: italicize command names in synopses Jonathan Nieder
2008-07-03  5:37     ` [PATCH 10/15] manpages: italicize command names Jonathan Nieder
2008-07-03  5:45     ` [PATCH 11/15] manpages: italicize git command names (which were in teletype font) Jonathan Nieder
2008-07-03  5:49     ` [PATCH 12/15] manpages: italicize gitk's name (where it was " Jonathan Nieder
2008-07-03  5:55     ` [PATCH 13/15] manpages: italicize nongit command names (if they are " Jonathan Nieder
2008-07-03  5:59     ` [PATCH 14/15] manpages: italicize git subcommand names (which were " Jonathan Nieder
2008-07-03  6:06     ` [PATCH 15/15] manpages: use teletype font for sample command lines Jonathan Nieder

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=20080702213148.GA26921@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=chriscool@tuxfamily.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jdl@jdl.com \
    --cc=jrnieder@uchicago.edu \
    --cc=pclouds@gmail.com \
    /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).