From: Junio C Hamano <gitster@pobox.com>
To: Matthew Ogilvie <mmogilvi_git@miniinfo.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Documentation: have ls-files and ls-tree "see also" each other
Date: Tue, 05 Jun 2012 08:03:38 -0700 [thread overview]
Message-ID: <7v62b5reb9.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20120605062935.GA4683@comcast.net> (Matthew Ogilvie's message of "Tue, 5 Jun 2012 00:29:35 -0600")
Matthew Ogilvie <mmogilvi_git@miniinfo.net> writes:
> On Mon, Jun 04, 2012 at 10:43:32PM -0700, Junio C Hamano wrote:
>> ...
>> That kind of overfiew is what the tutorial (for concepts like the
>> index, tree objects, commit objects, etc.) and the list of commands
>> in git(1). Is there compelling reason other than "I didn't bother
>> to look, and it is likely other people wouldn't" to apply patches
>> like this?
>
> Not really. Certainly this is a low priority change.
>
> But why do many of the man pages have "SEE ALSO"
> sections? Should we just get rid of such sections? Does anyone
> have any guidelines/rules for what makes sense to be in a
> "SEE ALSO" section?
Two questions that sound similar, somewhat related to each other,
but fundamentally different are [*1*]:
- Does it help knowing B to make good use of A?
- Do you need to know what is in the documentation for B in order
to understand what is in the documentation for A?
If the answer to either one is yes, it may be a good idea to have
"See also B" in the documentation for A.
The ls-files and ls-tree pair does not pass either of the above two
tests. They both give list of paths (but so do "diff --name-only"
and other things), but the similarity between them stops there, and
more importantly, similarity does not play any role in the above two
tests.
If we had a third test:
- Does it help knowing B to avoid wasting time attempting to use A
for a task for which A is not a suitable tool?
then ls-files and ls-tree pair would qualify. I however am not
convinced it is particularly a good test.
[Footnote]
*1* Note that the latter is a sign that A is described in terms of B
(i.e. "We assume you understand B; otherwise stop now, go there and
learn B, and come back. Now we will describe A"); it is preferrable
to avoid it if we can do so without duplication of the information
at the source level.
next prev parent reply other threads:[~2012-06-05 15:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 5:10 [PATCH] Documentation: have ls-files and ls-tree "see also" each other Matthew Ogilvie
2012-06-05 5:43 ` Junio C Hamano
2012-06-05 6:29 ` Matthew Ogilvie
2012-06-05 15:03 ` Junio C Hamano [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-14 3:28 Matthew Ogilvie
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=7v62b5reb9.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mmogilvi_git@miniinfo.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.