From: Junio C Hamano <gitster@pobox.com>
To: Joey Hess <joeyh@joeyh.name>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] improve documentation for some commands that use pathspecs
Date: Tue, 31 Mar 2015 09:38:23 -0700 [thread overview]
Message-ID: <xmqqd23prukg.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20150331152224.GA16617@kitenet.net> (Joey Hess's message of "Tue, 31 Mar 2015 11:22:24 -0400")
Joey Hess <joeyh@joeyh.name> writes:
> After being surprised that git-ls-files expands pathspecs, here's a patch
> that would have saved me.
> ---
I have a vague recollection that we originally wanted to
consistently say pathspec but some "user friendliness" folks wanted
to avoid the term as much as possible---blaming might reveal this
may be reverting the description to the original ;-).
I like the general direction, but please sign-off your patch.
> @@ -150,9 +150,10 @@ a space) at the start of each line:
> \--::
> Do not interpret any more arguments as options.
>
> -<file>::
> +<pathspec>::
> Files to show. If no files are given all files which match the other
> - specified criteria are shown.
> + specified criteria are shown. (Note that this isn't really raw
> + pathnames, but rather a list of patterns to match.)
After updating the heading to <pathspec>, it would be clear that it
is not listing filename but a specification to choose path with. I
do not see the need for this added "Note that".
Perhaps what you need to update is the first sentence "Files to
show". It is more like "Limit the paths to show with." or
something, perhaps? Then the "If no files are given" part (which is
wrong after your patch, because this is no longer talking about
giving any "file") can go. By default we show everything, and
use of pathspecs is merely one of the ways to limit the output, and
you would not want to repeat "if this option is not given, all paths
that match the other specified criteria are shown" to all the other
options that limit what is shown.
next prev parent reply other threads:[~2015-03-31 16:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 15:22 [PATCH] improve documentation for some commands that use pathspecs Joey Hess
2015-03-31 16:38 ` Junio C Hamano [this message]
2015-04-03 13:55 ` Duy Nguyen
2015-04-03 13:57 ` Duy Nguyen
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=xmqqd23prukg.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=joeyh@joeyh.name \
/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