From: Junio C Hamano <gitster@pobox.com>
To: imyousuf@gmail.com
Cc: git@vger.kernel.org, Imran M Yousuf <imyousuf@smartitengineering.com>
Subject: Re: [PATCH] - Added command synopsis in code and edited them in manual
Date: Thu, 06 Mar 2008 02:42:36 -0800 [thread overview]
Message-ID: <7vfxv49lr7.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: 1204788817-22720-1-git-send-email-imyousuf@gmail.com
imyousuf@gmail.com writes:
> From: Imran M Yousuf <imyousuf@smartitengineering.com>
>
> Added the command synopsis so that they are available for
> any future command additions.
I think you are talking about the comments you added at the beginning of
the script; I do not particularly see it as improvement. Rather, it
is just an additional maintenance burden that risks going out of sync with
the documentation.
It may make more sense to make your added lines into one line per
subcommand descriptions in LONG_USAGE, and shorten USAGE to just mention
"git submodule <command> <options>". The command is multi-featured enough
that it can afford to have a long on-line usage text, and I am reasonably
sure you would agree with me if you read your later patches that cram tons
of options on a single line USAGE. It simply is unreadable, no matter how
wide your terminal is.
By the way, please use imperative, e.g. "Add gostak so that doshes are
properly distimmed", instead of past tense "Added synopsis".
> In the init/update command synopsis either of them is required
> command as is add in its synopsis, so removed the square brackets
> around them from the documentation
But without grouping, the reader cannot tell where the alternation begins
and ends. Typically we use () in our documentation set.
That reminds me of the topic of marking "either this or that, you must
have one" with { this | that }, and that is more in line with other
systems' documentation, and is also consistent with what POSIX recommends.
I think the list atmosphere back then was "Yeah, {} may be more kosher,
but we have been consistently using () and that is not misleading, so
unless we convert everything consistently, using {} at only a few places
makes it even worse." I personally do not mind patches to convert
everybody to {} if we are confident that we can finish it before -rc1.
prev parent reply other threads:[~2008-03-06 10:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 7:33 [PATCH] - Added command synopsis in code and edited them in manual imyousuf
2008-03-06 7:33 ` [PATCH] - Added 'recurse' subcommand to git submodule imyousuf
2008-03-06 7:33 ` [PATCH] - Added pre command and custom argument support to git submodule recurse command imyousuf
2008-03-06 7:33 ` imyousuf
2008-03-06 7:33 ` imyousuf
2008-03-06 10:42 ` Junio C Hamano
2008-03-06 10:42 ` [PATCH] - Added 'recurse' subcommand to git submodule Junio C Hamano
2008-03-06 10:42 ` Junio C Hamano [this message]
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=7vfxv49lr7.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=imyousuf@gmail.com \
--cc=imyousuf@smartitengineering.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).